JSONObject |
JSONObject.accumulate(java.lang.String name,
java.lang.Object value) |
Appends value to the array already mapped to name .
|
JSONStringer |
JSONStringer.array() |
Begins encoding a new array.
|
JSONStringer |
JSONStringer.endArray() |
Ends encoding the current array.
|
JSONStringer |
JSONStringer.endObject() |
Ends encoding the current object.
|
java.lang.Object |
JSONArray.get(int index) |
Returns the value at index .
|
java.lang.Object |
JSONObject.get(java.lang.String name) |
Returns the value mapped by name .
|
boolean |
JSONArray.getBoolean(int index) |
Returns the value at index if it exists and is a boolean or can be coerced
to a boolean.
|
boolean |
JSONObject.getBoolean(java.lang.String name) |
Returns the value mapped by name if it exists and is a boolean or can be
coerced to a boolean.
|
double |
JSONArray.getDouble(int index) |
Returns the value at index if it exists and is a double or can be coerced
to a double.
|
double |
JSONObject.getDouble(java.lang.String name) |
Returns the value mapped by name if it exists and is a double or can be
coerced to a double.
|
int |
JSONArray.getInt(int index) |
Returns the value at index if it exists and is an int or can be coerced to
an int.
|
int |
JSONObject.getInt(java.lang.String name) |
Returns the value mapped by name if it exists and is an int or can be
coerced to an int.
|
JSONArray |
JSONArray.getJSONArray(int index) |
Returns the value at index if it exists and is a
JSONArray .
|
JSONArray |
JSONObject.getJSONArray(java.lang.String name) |
Returns the value mapped by name if it exists and is a
JSONArray .
|
JSONObject |
JSONArray.getJSONObject(int index) |
Returns the value at index if it exists and is a
JSONObject .
|
JSONObject |
JSONObject.getJSONObject(java.lang.String name) |
Returns the value mapped by name if it exists and is a
JSONObject .
|
long |
JSONArray.getLong(int index) |
Returns the value at index if it exists and is a long or can be coerced to
a long.
|
long |
JSONObject.getLong(java.lang.String name) |
Returns the value mapped by name if it exists and is a long or can be
coerced to a long.
|
java.lang.String |
JSONArray.getString(int index) |
Returns the value at index if it exists, coercing it if necessary.
|
java.lang.String |
JSONObject.getString(java.lang.String name) |
Returns the value mapped by name if it exists, coercing it if necessary.
|
java.lang.String |
JSONArray.join(java.lang.String separator) |
Returns a new string by alternating this array's values with
separator .
|
JSONStringer |
JSONStringer.key(java.lang.String name) |
Encodes the key (property name) to this stringer.
|
char |
JSONTokener.next(char c) |
|
java.lang.String |
JSONTokener.next(int length) |
|
char |
JSONTokener.nextClean() |
|
java.lang.String |
JSONTokener.nextString(char quote) |
Returns the string up to but not including quote , unescaping any character
escape sequences encountered along the way.
|
java.lang.Object |
JSONTokener.nextValue() |
Returns the next value from the input.
|
static java.lang.String |
JSONObject.numberToString(java.lang.Number number) |
Encodes the number as a JSON string.
|
JSONStringer |
JSONStringer.object() |
Begins encoding a new object.
|
JSONArray |
JSONArray.put(double value) |
Appends value to the end of this array.
|
JSONArray |
JSONArray.put(int index,
boolean value) |
Sets the value at index to value , null padding this array to the
required length if necessary.
|
JSONArray |
JSONArray.put(int index,
double value) |
Sets the value at index to value , null padding this array to the
required length if necessary.
|
JSONArray |
JSONArray.put(int index,
int value) |
Sets the value at index to value , null padding this array to the
required length if necessary.
|
JSONArray |
JSONArray.put(int index,
long value) |
Sets the value at index to value , null padding this array to the
required length if necessary.
|
JSONArray |
JSONArray.put(int index,
java.lang.Object value) |
Sets the value at index to value , null padding this array to the
required length if necessary.
|
JSONObject |
JSONObject.put(java.lang.String name,
boolean value) |
Maps name to value , clobbering any existing name/value mapping with
the same name.
|
JSONObject |
JSONObject.put(java.lang.String name,
double value) |
Maps name to value , clobbering any existing name/value mapping with
the same name.
|
JSONObject |
JSONObject.put(java.lang.String name,
int value) |
Maps name to value , clobbering any existing name/value mapping with
the same name.
|
JSONObject |
JSONObject.put(java.lang.String name,
long value) |
Maps name to value , clobbering any existing name/value mapping with
the same name.
|
JSONObject |
JSONObject.put(java.lang.String name,
java.lang.Object value) |
Maps name to value , clobbering any existing name/value mapping with
the same name.
|
JSONObject |
JSONObject.putOpt(java.lang.String name,
java.lang.Object value) |
Equivalent to put(name, value) when both parameters are non-null; does
nothing otherwise.
|
JSONArray |
JSONTokener.readArray() |
Reads a sequence of values and the trailing closing brace ']' of an array.
|
java.lang.Object |
JSONTokener.readLiteral() |
Reads a null, boolean, numeric or unquoted string literal value.
|
JSONObject |
JSONTokener.readObject() |
Reads a sequence of key/value pairs and the trailing closing brace '}' of an
object.
|
JSONObject |
JSONArray.toJSONObject(JSONArray names) |
Returns a new object whose values are the values in this array, and whose names are
the values in names .
|
JSONStringer |
JSONStringer.value(boolean value) |
Encodes value to this stringer.
|
JSONStringer |
JSONStringer.value(double value) |
Encodes value to this stringer.
|
JSONStringer |
JSONStringer.value(long value) |
Encodes value to this stringer.
|
JSONStringer |
JSONStringer.value(java.lang.Object value) |
Encodes value .
|