|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JSONObject | |
---|---|
net.sf.json | the core of the library |
net.sf.json.xml | Utilities for trasforming JSON to XML and back. |
Uses of JSONObject in net.sf.json |
---|
Methods in net.sf.json that return JSONObject | |
---|---|
JSONObject |
JSONObject.accumulate(java.lang.String key,
java.lang.Object value)
Accumulate values under a key. |
JSONObject |
JSONObject.append(java.lang.String key,
java.lang.Object value)
Append values to the array under a key. |
static JSONObject |
JSONObject.fromBean(java.lang.Object bean)
Creates a JSONObject from a POJO. |
static JSONObject |
JSONObject.fromDynaBean(org.apache.commons.beanutils.DynaBean bean)
Creates a JSONObject from a DynaBean. |
static JSONObject |
JSONObject.fromJSONTokener(JSONTokener tokener)
Constructs a JSONObject from a JSONTokener. |
static JSONObject |
JSONObject.fromMap(java.util.Map map)
Creates a JSONObject from a map. |
static JSONObject |
JSONObject.fromObject(java.lang.Object object)
Creates a JSONObject. |
static JSONObject |
JSONObject.fromString(java.lang.String str)
Constructs a JSONObject from a string in JSON format. |
JSONObject |
JSONArray.getJSONObject(int index)
Get the JSONObject associated with an index. |
JSONObject |
JSONObject.getJSONObject(java.lang.String key)
Get the JSONObject value associated with a key. |
JSONObject |
JSONArray.optJSONObject(int index)
Get the optional JSONObject associated with an index. |
JSONObject |
JSONObject.optJSONObject(java.lang.String key)
Get an optional JSONObject associated with a key. |
JSONObject |
JSONObject.put(java.lang.String key,
boolean value)
Put a key/boolean pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Collection value)
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection. |
JSONObject |
JSONObject.put(java.lang.String key,
double value)
Put a key/double pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
int value)
Put a key/int pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
long value)
Put a key/long pair in the JSONObject. |
JSONObject |
JSONObject.put(java.lang.String key,
java.util.Map value)
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map. |
JSONObject |
JSONObject.put(java.lang.String key,
java.lang.Object value)
Put a key/value pair in the JSONObject. |
JSONObject |
JSONObject.putOpt(java.lang.String key,
java.lang.Object value)
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null. |
static JSONObject |
CDL.rowToJSONObject(JSONArray names,
JSONTokener x)
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements. |
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray. |
Methods in net.sf.json with parameters of type JSONObject | |
---|---|
static java.util.Map |
JSONUtils.getProperties(JSONObject jsonObject)
Creates a Map with all the properties of the JSONObject. |
static java.lang.Object |
JSONObject.toBean(JSONObject jsonObject)
Creates a JSONDynaBean from a JSONObject. |
static java.lang.Object |
JSONObject.toBean(JSONObject jsonObject,
java.lang.Class beanClass)
Creates a bean from a JSONObject, with a specific target class. |
static java.lang.Object |
JSONObject.toBean(JSONObject jsonObject,
java.lang.Class beanClass,
java.util.Map classMap)
Creates a bean from a JSONObject, with a specific target class. |
Constructors in net.sf.json with parameters of type JSONObject | |
---|---|
JSONObject(JSONObject jo)
Construct a JSONObject from a subset of another JSONObject. |
|
JSONObject(JSONObject jo,
java.lang.String[] sa)
Construct a JSONObject from a subset of another JSONObject. |
Uses of JSONObject in net.sf.json.xml |
---|
Methods in net.sf.json.xml that return JSONObject | |
---|---|
static JSONObject |
XMLSerializer.readObject(java.lang.String xml)
Creates a JSONObject from a XML string. |
Methods in net.sf.json.xml with parameters of type JSONObject | |
---|---|
static java.lang.String |
XMLSerializer.write(JSONObject jsonObject)
Writes a JSONObject into a XML string. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |