Module org.jooq

Class JSONObject

All Implemented Interfaces:
Serializable, Cloneable, Map

@Deprecated(forRemoval=true) public class JSONObject extends HashMap
Deprecated, for removal: This API element is subject to removal in a future version.
- 3.21.0 - [#18329] - This shaded third party dependency will be removed without replacement. Please use any other JSON parser, instead - e.g. Jackson.
A JSON object. Key value pairs are unordered. JSONObject supports java.util.Map interface.
Author:
FangYidong<fangyidong@yahoo.com.cn>
See Also:
  • Constructor Details

    • JSONObject

      public JSONObject()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • JSONObject

      public JSONObject(Map map)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • writeJSONString

      public static void writeJSONString(Map<?,?> map, Writer out) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Encode a map into JSON text and write it to out.
      Throws:
      IOException
      See Also:
    • toJSONString

      public static String toJSONString(Map<?,?> map)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convert a map to JSON text. The result is a JSON object.
      Returns:
      JSON text, or "null" if map is null.
      See Also:
    • toString

      public static String toString(String key, Object value)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class AbstractMap
    • escape

      public static String escape(String s)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F). It's the same as JSONValue.escape() only for compatibility here.
      See Also: