JSONObject |
JSONObject.accumulate(String key,
boolean value) |
Accumulate values under a key.
|
JSONObject |
JSONObject.accumulate(String key,
double value) |
Accumulate values under a key.
|
JSONObject |
JSONObject.accumulate(String key,
int value) |
Accumulate values under a key.
|
JSONObject |
JSONObject.accumulate(String key,
long value) |
Accumulate values under a key.
|
JSONObject |
JSONObject.accumulate(String key,
Object value) |
Accumulate values under a key.
|
JSONObject |
JSONObject.accumulate(String key,
Object value,
JsonConfig jsonConfig) |
Accumulate values under a key.
|
static JSONObject |
JSONObject.Impl.defaultBeanProcessing(Object bean,
JsonConfig jsonConfig) |
|
JSONObject |
JSONObject.discard(String key) |
Remove a name and its value, if present.
|
JSONObject |
JSONObject.element(String key,
boolean value) |
Put a key/boolean pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
double value) |
Put a key/double pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
int value) |
Put a key/int pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
long value) |
Put a key/long pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
Object value) |
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
Object value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject.
|
JSONObject |
JSONObject.element(String key,
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.element(String key,
Collection value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject, where the value will be a
JSONArray which is produced from a Collection.
|
JSONObject |
JSONObject.element(String key,
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.element(String key,
Map value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
JSONObject |
JSONObject.elementOpt(String key,
Object value) |
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
|
JSONObject |
JSONObject.elementOpt(String key,
Object value,
JsonConfig jsonConfig) |
Put a key/value pair in the JSONObject, but only if the key and the value
are both non-null.
|
static JSONObject |
JSONObject.Impl.fromBean(Object bean,
JsonConfig jsonConfig) |
Creates a JSONObject from a POJO.
Supports nested maps, POJOs, and arrays/collections.
|
static JSONObject |
JSONObject.Impl.fromDynaBean(DynaBean bean,
JsonConfig jsonConfig) |
|
static JSONObject |
JSONObject.Impl.fromJSONObject(JSONObject object,
JsonConfig jsonConfig) |
|
static JSONObject |
JSONObject.Impl.fromJSONString(JSONString string,
JsonConfig jsonConfig) |
|
static JSONObject |
JSONObject.Impl.fromJSONTokener(JSONTokener tokener,
JsonConfig jsonConfig) |
|
static JSONObject |
JSONObject.Impl.fromMap(Map map,
JsonConfig jsonConfig) |
|
static JSONObject |
JSONObject.fromObject(Object object) |
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.
|
static JSONObject |
JSONObject.fromObject(Object object,
JsonConfig jsonConfig) |
Creates a JSONObject.
Inspects the object type to call the correct JSONObject factory method.
|
static JSONObject |
JSONObject.Impl.fromString(String str,
JsonConfig jsonConfig) |
|
JSONObject |
JSONArray.getJSONObject(int index) |
Get the JSONObject associated with an index.
|
JSONObject |
JSONObject.getJSONObject(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(String key) |
Get an optional JSONObject associated with a key.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names) |
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
|