|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JSONObject | |
---|---|
net.sf.json | the core of the library |
net.sf.json.util | Miscelaneous utilities |
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. |
static JSONObject |
JSONObject.fromBean(java.lang.Object bean)
Creates a JSONObject from a POJO. Supports nested maps, POJOs, and arrays/collections. |
static JSONObject |
JSONObject.fromDynaBean(org.apache.commons.beanutils.DynaBean bean)
Creates a JSONObject from a DynaBean. Supports nested maps, POJOs, and arrays/collections. |
static JSONObject |
JSONObject.fromJSONString(JSONString string)
Creates a JSONObject from a JSONString. |
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. The key names will become the object's attributes. |
static JSONObject |
JSONObject.fromObject(java.lang.Object object)
Creates a JSONObject. Inspects the object type to call the correct JSONObject factory method. |
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. |
JSONObject |
JSONObject.set(java.lang.String key,
java.lang.Object value)
Put a key/value pair in the JSONObject. |
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.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. If beanClass is null, this method will return a graph of DynaBeans. |
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.util |
---|
Methods in net.sf.json.util that return JSONObject | |
---|---|
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. |
Methods in net.sf.json.util with parameters of type JSONObject | |
---|---|
static java.util.Map |
JSONUtils.getProperties(JSONObject jsonObject)
Creates a Map with all the properties of the JSONObject. |
static JSONDynaBean |
JSONUtils.newDynaBean(JSONObject 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 |