Class DefaultJsonFormatter

  • All Implemented Interfaces:
    Formatter<java.lang.String>, JsonFormatter

    public class DefaultJsonFormatter
    extends java.lang.Object
    implements JsonFormatter
    Simply format the JSON using JSONObject and JSONArray.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.String json)
      Format the data to a readable and loggable string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultJsonFormatter

        public DefaultJsonFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.lang.String json)
        Description copied from interface: Formatter
        Format the data to a readable and loggable string.
        Specified by:
        format in interface Formatter<java.lang.String>
        Parameters:
        json - the data to format
        Returns:
        the formatted string data