public class JSONObject extends LinkedHashMap<Object,Object> implements Map<Object,Object>, JSONAware
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
JSONObject() |
| Modifier and Type | Method and Description |
|---|---|
String |
toJSONString()
Encodes this object to a JSON string.
|
static String |
toJSONString(Map map)
Convert (aka., encode) a map to JSON text.
|
String |
toString()
Encodes this object to a JSON string.
|
static String |
toString(String key,
Object value) |
clear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodepublic static String toJSONString(Map map)
map - JSONValue.toJSONString(Object)public String toJSONString()
toString().toJSONString in interface JSONAwarepublic String toString()
toJSONString().toString in class AbstractMap<Object,Object>Copyright © 2016. All rights reserved.