JsonObject@Deprecated public class JSONObject extends HashMap implements Map, JSONAware, JSONStreamAware
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
JSONObject()
Deprecated.
|
JSONObject(Map map)
Deprecated.
Allows creation of a JSONObject from a Map.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String s)
Deprecated.
Escape quotes, \, /, \r, \n, \b, \f, \t and other control characters (U+0000 through U+001F).
|
String |
toJSONString()
Deprecated.
|
static String |
toJSONString(Map map)
Deprecated.
Convert a map to JSON text.
|
String |
toString()
Deprecated.
|
static String |
toString(String key,
Object value)
Deprecated.
description omitted.
|
static void |
writeJSONString(Map map,
Writer out)
Deprecated.
Encode a map into JSON text and write it to out.
|
void |
writeJSONString(Writer out)
Deprecated.
write JSON string to out.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic JSONObject()
public JSONObject(Map map)
map - description omitted.public static void writeJSONString(Map map, Writer out) throws IOException
map - description omitted.out - description omitted.IOException - description omitted.JSONValue.writeJSONString(Object, Writer)public void writeJSONString(Writer out) throws IOException
JSONStreamAwarewriteJSONString in interface JSONStreamAwareout - description omitted.IOException - description omitted.public static String toJSONString(Map map)
map - description omitted.JSONValue.toJSONString(Object)public String toJSONString()
toJSONString in interface JSONAwarepublic String toString()
toString in class AbstractMappublic static String toString(String key, Object value)
key - description omitted.value - description omitted.public static String escape(String s)
s - description omitted.JSONValue.escape(String)Copyright © 2018. All rights reserved.