- get(int) - Method in class org.json.JSONArray
-
Returns the value at index
.
- get(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
.
- getBoolean(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a boolean or can
be coerced to a boolean.
- getBoolean(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a boolean or
can be coerced to a boolean.
- getDouble(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a double or can
be coerced to a double.
- getDouble(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a double or
can be coerced to a double.
- getInt(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is an int or
can be coerced to an int.
- getInt(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is an int or
can be coerced to an int.
- getJSONArray(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a JSONArray
.
- getJSONArray(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a JSONArray
.
- getJSONObject(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a JSONObject
.
- getJSONObject(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a JSONObject
.
- getLong(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a long or
can be coerced to a long.
- getLong(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a long or
can be coerced to a long.
- getString(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists, coercing it if
necessary.
- getString(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists, coercing it if
necessary.
- join(String) - Method in class org.json.JSONArray
-
Returns a new string by alternating this array's values with separator
.
- JSONArray - Class in org.json
-
A dense indexed sequence of values.
- JSONArray() - Constructor for class org.json.JSONArray
-
Creates a JSONArray
with no values.
- JSONArray(Collection) - Constructor for class org.json.JSONArray
-
Creates a new JSONArray
by copying all values from the given
collection.
- JSONArray(JSONTokener) - Constructor for class org.json.JSONArray
-
Creates a new JSONArray
with values from the next array in the
tokener.
- JSONArray(String) - Constructor for class org.json.JSONArray
-
Creates a new JSONArray
with values from the JSON string.
- JSONException - Exception in org.json
-
Thrown to indicate a problem with the JSON API.
- JSONException(String) - Constructor for exception org.json.JSONException
-
- JSONObject - Class in org.json
-
A modifiable set of name/value mappings.
- JSONObject() - Constructor for class org.json.JSONObject
-
Creates a JSONObject
with no name/value mappings.
- JSONObject(Map) - Constructor for class org.json.JSONObject
-
Creates a new JSONObject
by copying all name/value mappings from
the given map.
- JSONObject(JSONTokener) - Constructor for class org.json.JSONObject
-
Creates a new JSONObject
with name/value mappings from the next
object in the tokener.
- JSONObject(String) - Constructor for class org.json.JSONObject
-
Creates a new JSONObject
with name/value mappings from the JSON
string.
- JSONObject(JSONObject, String[]) - Constructor for class org.json.JSONObject
-
Creates a new JSONObject
by copying mappings for the listed names
from the given object.
- JSONStringer - Class in org.json
-
- JSONStringer() - Constructor for class org.json.JSONStringer
-
- JSONTokener - Class in org.json
-
Parses a JSON (
RFC 4627)
encoded string into the corresponding object.
- JSONTokener(String) - Constructor for class org.json.JSONTokener
-
- object() - Method in class org.json.JSONStringer
-
Begins encoding a new object.
- opt(int) - Method in class org.json.JSONArray
-
Returns the value at index
, or null if the array has no value
at index
.
- opt(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
, or null if no such mapping
exists.
- optBoolean(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a boolean or can
be coerced to a boolean.
- optBoolean(int, boolean) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a boolean or can
be coerced to a boolean.
- optBoolean(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a boolean or
can be coerced to a boolean.
- optBoolean(String, boolean) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a boolean or
can be coerced to a boolean.
- optDouble(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a double or can
be coerced to a double.
- optDouble(int, double) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a double or can
be coerced to a double.
- optDouble(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a double or
can be coerced to a double.
- optDouble(String, double) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a double or
can be coerced to a double.
- optInt(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is an int or
can be coerced to an int.
- optInt(int, int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is an int or
can be coerced to an int.
- optInt(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is an int or
can be coerced to an int.
- optInt(String, int) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is an int or
can be coerced to an int.
- optJSONArray(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a JSONArray
.
- optJSONArray(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a JSONArray
.
- optJSONObject(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a JSONObject
.
- optJSONObject(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a JSONObject
.
- optLong(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a long or
can be coerced to a long.
- optLong(int, long) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists and is a long or
can be coerced to a long.
- optLong(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a long or
can be coerced to a long.
- optLong(String, long) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists and is a long or
can be coerced to a long.
- optString(int) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists, coercing it if
necessary.
- optString(int, String) - Method in class org.json.JSONArray
-
Returns the value at index
if it exists, coercing it if
necessary.
- optString(String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists, coercing it if
necessary.
- optString(String, String) - Method in class org.json.JSONObject
-
Returns the value mapped by name
if it exists, coercing it if
necessary.
- org.json - package org.json
-
- put(boolean) - Method in class org.json.JSONArray
-
Appends value
to the end of this array.
- put(double) - Method in class org.json.JSONArray
-
Appends value
to the end of this array.
- put(int) - Method in class org.json.JSONArray
-
Appends value
to the end of this array.
- put(long) - Method in class org.json.JSONArray
-
Appends value
to the end of this array.
- put(Object) - Method in class org.json.JSONArray
-
Appends value
to the end of this array.
- put(int, boolean) - Method in class org.json.JSONArray
-
Sets the value at index
to value
, null padding this array
to the required length if necessary.
- put(int, double) - Method in class org.json.JSONArray
-
Sets the value at index
to value
, null padding this array
to the required length if necessary.
- put(int, int) - Method in class org.json.JSONArray
-
Sets the value at index
to value
, null padding this array
to the required length if necessary.
- put(int, long) - Method in class org.json.JSONArray
-
Sets the value at index
to value
, null padding this array
to the required length if necessary.
- put(int, Object) - Method in class org.json.JSONArray
-
Sets the value at index
to value
, null padding this array
to the required length if necessary.
- put(String, boolean) - Method in class org.json.JSONObject
-
Maps name
to value
, clobbering any existing name/value
mapping with the same name.
- put(String, double) - Method in class org.json.JSONObject
-
Maps name
to value
, clobbering any existing name/value
mapping with the same name.
- put(String, int) - Method in class org.json.JSONObject
-
Maps name
to value
, clobbering any existing name/value
mapping with the same name.
- put(String, long) - Method in class org.json.JSONObject
-
Maps name
to value
, clobbering any existing name/value
mapping with the same name.
- put(String, Object) - Method in class org.json.JSONObject
-
Maps name
to value
, clobbering any existing name/value
mapping with the same name.
- putOpt(String, Object) - Method in class org.json.JSONObject
-
Equivalent to put(name, value)
when both parameters are non-null;
does nothing otherwise.