public class JSONObject extends java.util.LinkedHashMap<java.lang.Object,java.lang.Object> implements java.util.Map<java.lang.Object,java.lang.Object>, JSONAware
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
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) |
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
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<java.lang.Object,java.lang.Object>
public static java.lang.String toString(java.lang.String key, java.lang.Object value)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.