java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.jooq.tools.json.JSONObject
- All Implemented Interfaces:
Serializable,Cloneable,Map
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.JSONObject(Map map) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated, 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).static StringtoJSONString(Map<?, ?> map) Deprecated, for removal: This API element is subject to removal in a future version.Convert a map to JSON text.toString()Deprecated, for removal: This API element is subject to removal in a future version.static StringDeprecated, for removal: This API element is subject to removal in a future version.static voidwriteJSONString(Map<?, ?> map, Writer out) 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.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode
-
Constructor Details
-
JSONObject
public JSONObject()Deprecated, for removal: This API element is subject to removal in a future version. -
JSONObject
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
writeJSONString
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
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
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toStringin classAbstractMap
-
escape
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:
-