Package | Description |
---|---|
org.json.me | |
org.json.me.util |
Modifier and Type | Method and Description |
---|---|
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.
|
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,
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.putOnce(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, and only if there is
not already a member with that name.
|
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 |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
|
Constructor and Description |
---|
JSONObject(JSONObject jo,
java.lang.String[] sa)
Construct a JSONObject from a subset of another JSONObject.
|
Modifier and Type | Method and Description |
---|---|
static JSONObject |
XML.toJSONObject(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
|