|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
java.util.LinkedHashMap
org.zkoss.json.JSONObject
public class JSONObject
A JSON object. Key value pairs are in the order of adding. JSONObject supports java.util.Map interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry |
Constructor Summary | |
---|---|
JSONObject()
|
Method Summary | |
---|---|
java.lang.String |
toJSONString()
Encodes this object to a JSON string. |
static java.lang.String |
toJSONString(java.util.Map map)
Convert (aka., encode) a map to JSON text. |
java.lang.String |
toString()
Encodes this object to a JSON string. |
static java.lang.String |
toString(java.lang.String key,
java.lang.Object value)
|
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public JSONObject()
Method Detail |
---|
public static java.lang.String toJSONString(java.util.Map map)
map
-
JSONValue.toJSONString(Object)
public java.lang.String toJSONString()
toString()
.
toJSONString
in interface JSONAware
public java.lang.String toString()
toJSONString()
.
toString
in class java.util.AbstractMap
public static java.lang.String toString(java.lang.String key, java.lang.Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |