Class Json


  • public class Json
    extends Object
    • Constructor Detail

      • Json

        public Json()
    • Method Detail

      • getParserName

        public static String getParserName()
      • setParserName

        public static void setParserName​(String fqn)
      • toJson

        public static String toJson​(Map thisMap)
        Serializes this Map instance to a JSON formatted String
      • toJson

        public static void toJson​(Map thisMap,
                                  StringBuilder sb,
                                  int indent)
        Serializes this Map instance into a JSON formatted StringBuilder with the specified indent of spaces
      • toBindings

        public static Object toBindings​(Object value)
      • indent

        public static void indent​(StringBuilder sb,
                                  int indent)
      • toJson

        public static String toJson​(Object value)
        Build a JSON string from the specified value. The value must be a valid JSON value:
      • primitive, boxed primitive, or String
      • Iterable of JSON values
      • Map of JSON values
Returns:
A JSON String reflecting the specified value