Skip navigation links
A B C D E G H I J K L M N O P Q R S T U V W 

A

AbstractUnmodifiableJSONObject - Class in org.json
Deprecated.
AbstractUnmodifiableJSONObject() - Constructor for class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
append(char) - Method in class org.json.StringCharBuilder
 

B

back() - Method in interface org.json.JSONTokener
 
back() - Method in class org.json.JSONTokenerReader
Back up one character.
back() - Method in class org.json.JSONTokenerString
 
build() - Method in class org.json.ImmutableJSONArray.Builder
 
build() - Method in class org.json.ImmutableJSONObject.Builder
 
build() - Method in interface org.json.JSONArrayBuilder
 
build() - Method in interface org.json.JSONObjectBuilder
Compile the values supplied to JSONObjectBuilder.putOnce(String, Object) into a JSONObject representation.
build() - Method in class org.json.WritableJSONArray.Builder
 
build() - Method in class org.json.WritableJSONObject.Builder
 
Builder() - Constructor for class org.json.ImmutableJSONArray.Builder
 
Builder() - Constructor for class org.json.ImmutableJSONObject.Builder
 
Builder() - Constructor for class org.json.WritableJSONArray.Builder
 
Builder() - Constructor for class org.json.WritableJSONObject.Builder
 

C

capacity() - Method in class org.json.StringCharBuilder
 
cast(JSONArray) - Method in class org.json.ImmutableJSON
 
cast(JSONObject) - Method in class org.json.ImmutableJSON
 
cast(Object) - Method in class org.json.JSONBuilder
 
cast(JSONArray) - Method in class org.json.JSONBuilder
 
cast(JSONObject) - Method in class org.json.JSONBuilder
 
cast(JSONArray) - Method in class org.json.WritableJSON
 
cast(JSONObject) - Method in class org.json.WritableJSON
 
charAt(int) - Method in class org.json.StringCharBuilder
 
clone(JSONBuilder<A, O>) - Method in class org.json.ImmutableJSONArray
 
clone(JSONBuilder<A, O>) - Method in class org.json.ImmutableJSONObject
 
clone(JSONBuilder<A, O>) - Method in interface org.json.JSONArray
 
clone(List<Object>, JSONBuilder<A, O>) - Static method in class org.json.JSONArrays
 
clone(JSONArray) - Method in class org.json.JSONBuilder
 
clone(JSONObject) - Method in class org.json.JSONBuilder
 
clone(JSONBuilder<A, O>) - Method in interface org.json.JSONObject
 
clone(Map<String, Object>, JSONBuilder<A, O>) - Static method in class org.json.JSONObjects
 
clone(JSONBuilder<A, O>) - Method in class org.json.ListBasedJSONArray
 
clone(JSONBuilder<A, O>) - Method in class org.json.MapBasedJSONObject
 
clone() - Method in class org.json.Null
There is only intended to be a single instance of the NULL object, so the clone method returns itself.
clone(JSONBuilder<A, O>) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
clone(JSONBuilder<A, O>) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
clone() - Method in class org.json.WritableJSONArray
 
clone() - Method in class org.json.WritableJSONObject
 
close() - Method in class org.json.StringCharBuilder
 
create(String) - Static method in class org.json.WritableJSONObject
 
createJSONArrayBuilder() - Method in class org.json.ImmutableJSON
 
createJSONArrayBuilder() - Method in class org.json.JSONBuilder
 
createJSONArrayBuilder() - Method in class org.json.WritableJSON
 
createJSONObjectBuilder() - Method in class org.json.ImmutableJSON
 
createJSONObjectBuilder() - Method in class org.json.JSONBuilder
 
createJSONObjectBuilder() - Method in class org.json.WritableJSON
 

D

dehexchar(char) - Static method in class org.json.JSONTokenerReader
Get the hex value of a character (base16).

E

EMPTY - Static variable in class org.json.ImmutableJSONArray
 
EMPTY - Static variable in class org.json.ImmutableJSONObject
 
EMPTY - Static variable in interface org.json.JSONObject
Deprecated.
emptyInstance() - Static method in class org.json.UnmodifiableJSONObject
Deprecated.
 
emptyJSONArray() - Method in class org.json.ImmutableJSON
 
emptyJSONArray() - Method in class org.json.JSONBuilder
Create an empty JSONArray.
emptyJSONObject() - Method in class org.json.ImmutableJSON
 
emptyJSONObject() - Method in class org.json.JSONBuilder
Create an empty JSONObject.
end() - Method in class org.json.JSONTokenerReader
 
equals(Object) - Method in class org.json.ListBasedJSONArray
 
equals(Object) - Method in class org.json.MapBasedJSONObject
 
equals(Object) - Method in class org.json.Null
A Null object is equal to the null value and to itself.
equals(Object) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
equals(Object) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
equalsList(List<Object>) - Method in interface org.json.JSONArray
 
equalsList(List<Object>) - Method in class org.json.ListBasedJSONArray
 
equalsList(List<Object>) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
equalsMap(Map<String, Object>) - Method in class org.json.ImmutableJSONObject
 
equalsMap(Map<String, Object>) - Method in interface org.json.JSONObject
 
equalsMap(Map<String, Object>) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
equalsMap(Map<String, Object>) - Method in class org.json.WritableJSONObject
 
escapeChars(String, Appendable) - Static method in class org.json.JSONComponents
Append a string with backslash sequences in all the right places.

G

get() - Static method in class org.json.ImmutableJSON
 
get(int) - Method in interface org.json.JSONArray
Get the object value associated with an index.
get(String) - Method in interface org.json.JSONObject
Get the value object associated with a key.
get(int) - Method in class org.json.ListBasedJSONArray
Get the object value associated with an index.
get(String) - Method in class org.json.MapBasedJSONObject
Get the value object associated with a key.
get(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
get(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
get() - Static method in class org.json.WritableJSON
 
getBackingList() - Method in class org.json.ListBasedJSONArray
 
getBoolean(int) - Method in interface org.json.JSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in interface org.json.JSONObject
Get the boolean value associated with a key.
getBoolean(int) - Method in class org.json.ListBasedJSONArray
Get the boolean value associated with an index.
getBoolean(String) - Method in class org.json.MapBasedJSONObject
Get the boolean value associated with a key.
getBoolean(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getBoolean(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getDouble(int) - Method in interface org.json.JSONArray
Get the double value associated with an index.
getDouble(String) - Method in interface org.json.JSONObject
Get the double value associated with a key.
getDouble(int) - Method in class org.json.ListBasedJSONArray
Get the double value associated with an index.
getDouble(String) - Method in class org.json.MapBasedJSONObject
Get the double value associated with a key.
getDouble(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getDouble(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getDoubleObj(String) - Method in interface org.json.JSONObject
Get the compulsory number as a Double Object throwing a JSONException if this is not possible.
getDoubleObj(String) - Method in class org.json.MapBasedJSONObject
 
getDoubleObj(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getInstance() - Static method in class org.json.ImmutableJSON
Deprecated.
in preference of ImmutableJSON.get()
getInstance() - Static method in class org.json.Null
 
getInstance(JSONArray) - Static method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getInstance(JSONObject) - Static method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getInstance(String) - Static method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getInt(int) - Method in interface org.json.JSONArray
Get the int value associated with an index.
getInt(String) - Method in interface org.json.JSONObject
Get the int value associated with a key.
getInt(int) - Method in class org.json.ListBasedJSONArray
Get the int value associated with an index.
getInt(String) - Method in class org.json.MapBasedJSONObject
Get the int value associated with a key.
getInt(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getInt(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getJSONArray(int) - Method in class org.json.ImmutableJSONArray
 
getJSONArray(int) - Method in interface org.json.JSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in interface org.json.JSONObject
Get the JSONArray value associated with a key.
getJSONArray(int) - Method in class org.json.ListBasedJSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class org.json.MapBasedJSONObject
Get the JSONArray value associated with a key.
getJSONArray(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getJSONArray(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getJSONArray(int) - Method in class org.json.WritableJSONArray
Get the JSONArray associated with an index.
getJSONArray(String) - Method in class org.json.WritableJSONObject
 
getJSONArrayBuilderSupplier() - Static method in class org.json.WritableJSONArray
 
getJSONArrayClass() - Method in class org.json.JSONBuilder
 
getJSONObject(int) - Method in class org.json.ImmutableJSONArray
 
getJSONObject(int) - Method in interface org.json.JSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in interface org.json.JSONObject
Get the JSONObject value associated with a key.
getJSONObject(int) - Method in class org.json.ListBasedJSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class org.json.MapBasedJSONObject
Get the JSONObject value associated with a key.
getJSONObject(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getJSONObject(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getJSONObject(int) - Method in class org.json.WritableJSONArray
Get the JSONObject associated with an index.
getJSONObject(String) - Method in class org.json.WritableJSONObject
Get the JSONObject value associated with a key.
getJSONObjectBuilderSupplier() - Static method in class org.json.WritableJSONObject
 
getJSONObjectClass() - Method in class org.json.JSONBuilder
 
getLong(int) - Method in interface org.json.JSONArray
Get the long value associated with an index.
getLong(String) - Method in interface org.json.JSONObject
Get the long value associated with a key.
getLong(int) - Method in class org.json.ListBasedJSONArray
Get the long value associated with an index.
getLong(String) - Method in class org.json.MapBasedJSONObject
Get the long value associated with a key.
getLong(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getLong(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
getMap() - Method in class org.json.ImmutableJSONObject
 
getMap() - Method in class org.json.MapBasedJSONObject
 
getMap() - Method in class org.json.WritableJSONObject
 
getString(int) - Method in interface org.json.JSONArray
Get the string associated with an index.
getString(String) - Method in interface org.json.JSONObject
Get the string associated with a key.
getString(int) - Method in class org.json.ListBasedJSONArray
Get the string associated with an index.
getString(String) - Method in class org.json.MapBasedJSONObject
Get the string associated with a key.
getString(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
getString(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 

H

has(String) - Method in interface org.json.JSONObject
Determine if the JSONObject contains a specific key.
has(String) - Method in class org.json.MapBasedJSONObject
Determine if the JSONObject contains a specific key.
has(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
hashCode() - Method in class org.json.ListBasedJSONArray
 
hashCode() - Method in class org.json.MapBasedJSONObject
 
hashCode() - Method in class org.json.Null
 
hashCode() - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
hashCode() - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
hasNext() - Method in class org.json.UnmodifiableIterator
Deprecated.
 

I

ImmutableJSON - Class in org.json
 
ImmutableJSONArray - Class in org.json
 
ImmutableJSONArray.Builder - Class in org.json
 
ImmutableJSONObject - Class in org.json
 
ImmutableJSONObject.Builder - Class in org.json
 
indexOf(Object) - Method in interface org.json.JSONArray
 
indexOf(Object) - Method in class org.json.ListBasedJSONArray
 
indexOf(Object) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
isNull(int) - Method in interface org.json.JSONArray
Determine if the value is null.
isNull(String) - Method in interface org.json.JSONObject
Determine if the value associated with the key is null or if there is no value.
isNull(int) - Method in class org.json.ListBasedJSONArray
Determine if the value is null.
isNull(String) - Method in class org.json.MapBasedJSONObject
Determine if the value associated with the key is null or if there is no value.
isNull(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
isNull(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
iterator() - Method in interface org.json.JSONArray
 
iterator() - Method in class org.json.ListBasedJSONArray
 
iterator() - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 

J

JSONArray - Interface in org.json
 
JSONArrayBuilder<A extends JSONArray> - Interface in org.json
 
JSONArrays - Class in org.json
 
JSONArrays() - Constructor for class org.json.JSONArrays
 
JSONBuilder<A extends JSONArray,O extends JSONObject> - Class in org.json
 
JSONBuilder(Class<A>, Class<O>) - Constructor for class org.json.JSONBuilder
 
JSONComponent - Interface in org.json
 
JSONComponents - Class in org.json
 
JSONComponents() - Constructor for class org.json.JSONComponents
 
JSONException - Exception in org.json
The JSONException is thrown by the JSON.org classes when things are amiss.
JSONException(String) - Constructor for exception org.json.JSONException
Constructs a JSONException with an explanatory message.
JSONException(String, Throwable) - Constructor for exception org.json.JSONException
 
JSONException(Throwable) - Constructor for exception org.json.JSONException
 
JSONFactory - Interface in org.json
Deprecated.
JSONLogicException - Exception in org.json
 
JSONLogicException() - Constructor for exception org.json.JSONLogicException
 
JSONLogicException(String, Throwable) - Constructor for exception org.json.JSONLogicException
 
JSONLogicException(String) - Constructor for exception org.json.JSONLogicException
 
JSONLogicException(Throwable) - Constructor for exception org.json.JSONLogicException
 
JSONObject - Interface in org.json
 
JSONObjectBuilder<O extends JSONObject> - Interface in org.json
 
JSONObjects - Class in org.json
 
JSONObjects() - Constructor for class org.json.JSONObjects
 
JSONParser - Class in org.json
 
JSONParser() - Constructor for class org.json.JSONParser
 
JSONRuntimeException - Exception in org.json
 
JSONRuntimeException() - Constructor for exception org.json.JSONRuntimeException
 
JSONRuntimeException(String, Throwable) - Constructor for exception org.json.JSONRuntimeException
 
JSONRuntimeException(String) - Constructor for exception org.json.JSONRuntimeException
 
JSONRuntimeException(Throwable) - Constructor for exception org.json.JSONRuntimeException
 
JSONString - Interface in org.json
The JSONString interface allows a toJSONString() method so that a class can change the behavior of JSONObject.toString(), JSONArray.toString(), and JSONWriter.value(Object).
JSONTokener<A extends JSONArray,O extends JSONObject> - Interface in org.json
A JSONTokener takes a source string and extracts characters and tokens from it.
JSONTokenerReader<A extends JSONArray,O extends JSONObject> - Class in org.json
A JSONTokener takes a source string and extracts characters and tokens from it.
JSONTokenerReader(Reader, JSONBuilder<A, O>) - Constructor for class org.json.JSONTokenerReader
Construct a JSONTokener from a Reader.
JSONTokenerString<A extends JSONArray,O extends JSONObject> - Class in org.json
 
JSONTokenerString(String, JSONBuilder<A, O>) - Constructor for class org.json.JSONTokenerString
 
JSONUtils - Class in org.json
Deprecated.

K

keys() - Method in interface org.json.JSONObject
Get an enumeration of the keys of the JSONObject.
keys() - Method in class org.json.MapBasedJSONObject
Get an enumeration of the keys of the JSONObject.
keys() - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 

L

length() - Method in interface org.json.JSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in interface org.json.JSONObject
Get the number of keys stored in the JSONObject.
length() - Method in class org.json.ListBasedJSONArray
Get the number of elements in the JSONArray, included nulls.
length() - Method in class org.json.MapBasedJSONObject
Get the number of keys stored in the JSONObject.
length() - Method in class org.json.StringCharBuilder
 
length() - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
length() - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
ListBasedJSONArray - Class in org.json
 
ListBasedJSONArray(List<Object>) - Constructor for class org.json.ListBasedJSONArray
 

M

main(String[]) - Static method in class org.json.Test
 
MapBasedJSONObject - Class in org.json
 
MapBasedJSONObject() - Constructor for class org.json.MapBasedJSONObject
 
more() - Method in class org.json.JSONTokenerReader
Determine if the source string still contains characters that next() can consume.

N

next() - Method in interface org.json.JSONTokener
 
next() - Method in class org.json.JSONTokenerReader
Get the next character in the source string.
next(int) - Method in class org.json.JSONTokenerReader
Get the next n characters.
next() - Method in class org.json.JSONTokenerString
 
next() - Method in class org.json.UnmodifiableIterator
Deprecated.
 
nextClean() - Method in interface org.json.JSONTokener
 
nextClean() - Method in class org.json.JSONTokenerReader
Get the next char in the string, skipping whitespace.
nextClean() - Method in class org.json.JSONTokenerString
 
nextKey() - Method in interface org.json.JSONTokener
 
nextKey() - Method in class org.json.JSONTokenerReader
 
nextKey() - Method in class org.json.JSONTokenerString
 
nextString(char) - Method in class org.json.JSONTokenerReader
Return the characters up to the next close quote character.
nextString(char) - Method in class org.json.JSONTokenerString
 
nextString(char, StringCharBuilder) - Method in class org.json.JSONTokenerString
 
nextTo(char) - Method in class org.json.JSONTokenerReader
Get the text up but not including the specified character or the end of line, whichever comes first.
nextTo(String) - Method in class org.json.JSONTokenerReader
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.
nextValue() - Method in interface org.json.JSONTokener
 
nextValue() - Method in class org.json.JSONTokenerReader
Get the next value.
nextValue() - Method in class org.json.JSONTokenerString
 
Null - Class in org.json
JSONObject.NULL is equivalent to the value that JavaScript calls null, whilst Java's null is equivalent to the value that JavaScript calls undefined.
numberToString(Number) - Static method in class org.json.JSONComponents
Produce a string from a Number.

O

open() - Method in class org.json.StringCharBuilder
 
opt(int) - Method in interface org.json.JSONArray
Get the optional object value associated with an index.
opt(String) - Method in interface org.json.JSONObject
Get an optional value associated with a key.
opt(int) - Method in class org.json.ListBasedJSONArray
Get the optional object value associated with an index.
opt(String) - Method in class org.json.MapBasedJSONObject
Get an optional value associated with a key.
opt(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
opt(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optBoolean(int) - Method in interface org.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in interface org.json.JSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in interface org.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in interface org.json.JSONObject
Get an optional boolean associated with a key.
optBoolean(int) - Method in class org.json.ListBasedJSONArray
Get the optional boolean value associated with an index.
optBoolean(int, boolean) - Method in class org.json.ListBasedJSONArray
Get the optional boolean value associated with an index.
optBoolean(String) - Method in class org.json.MapBasedJSONObject
Get an optional boolean associated with a key.
optBoolean(String, boolean) - Method in class org.json.MapBasedJSONObject
Get an optional boolean associated with a key.
optBoolean(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optBoolean(int, boolean) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optBoolean(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optBoolean(String, boolean) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optDouble(int) - Method in interface org.json.JSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in interface org.json.JSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in interface org.json.JSONObject
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
optDouble(String, double) - Method in interface org.json.JSONObject
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
optDouble(int) - Method in class org.json.ListBasedJSONArray
Get the optional double value associated with an index.
optDouble(int, double) - Method in class org.json.ListBasedJSONArray
Get the optional double value associated with an index.
optDouble(String) - Method in class org.json.MapBasedJSONObject
Get an optional double associated with a key, or NaN if there is no such key or if its value is not a number.
optDouble(String, double) - Method in class org.json.MapBasedJSONObject
Get an optional double associated with a key, or the defaultValue if there is no such key or if its value is not a number.
optDouble(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optDouble(int, double) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optDouble(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optDouble(String, double) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optDoubleObj(String, Double) - Method in interface org.json.JSONObject
Get the optional number as a Double Object returning the optional defaultValue if this is not possible.
optDoubleObj(String, Double) - Method in class org.json.MapBasedJSONObject
 
optDoubleObj(String, Double) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optInt(int) - Method in interface org.json.JSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in interface org.json.JSONArray
Get the optional int value associated with an index.
optInt(String) - Method in interface org.json.JSONObject
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
optInt(String, int) - Method in interface org.json.JSONObject
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
optInt(int) - Method in class org.json.ListBasedJSONArray
Get the optional int value associated with an index.
optInt(int, int) - Method in class org.json.ListBasedJSONArray
Get the optional int value associated with an index.
optInt(String) - Method in class org.json.MapBasedJSONObject
Get an optional int value associated with a key, or zero if there is no such key or if the value is not a number.
optInt(String, int) - Method in class org.json.MapBasedJSONObject
Get an optional int value associated with a key, or the default if there is no such key or if the value is not a number.
optInt(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optInt(int, int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optInt(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optInt(String, int) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optInteger(String) - Method in interface org.json.JSONObject
Get an optional Integer value associated with the key, or null if there is no such key or if the value is not a number and the string representation cannot be parsed as an Integer.
optInteger(String, Integer) - Method in interface org.json.JSONObject
Get an optional Integer value associated with the key, or the specified defaultValue if there is no such key or if the value is not a number and the string representation cannot be parsed as an Integer.
optInteger(String, Integer) - Method in class org.json.MapBasedJSONObject
 
optInteger(String) - Method in class org.json.MapBasedJSONObject
 
optInteger(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optInteger(String, Integer) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optJSONArray(int) - Method in class org.json.ImmutableJSONArray
 
optJSONArray(int) - Method in interface org.json.JSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in interface org.json.JSONObject
Get an optional JSONArray associated with a key.
optJSONArray(int) - Method in class org.json.ListBasedJSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class org.json.MapBasedJSONObject
Get an optional JSONArray associated with a key.
optJSONArray(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optJSONArray(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optJSONArray(int) - Method in class org.json.WritableJSONArray
Get the optional JSONArray associated with an index.
optJSONArray(String) - Method in class org.json.WritableJSONObject
Get an optional JSONArray associated with a key.
optJSONObject(int) - Method in class org.json.ImmutableJSONArray
 
optJSONObject(int) - Method in interface org.json.JSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in interface org.json.JSONObject
Get an optional JSONObject associated with a key.
optJSONObject(int) - Method in class org.json.ListBasedJSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class org.json.MapBasedJSONObject
Get an optional JSONObject associated with a key.
optJSONObject(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optJSONObject(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optJSONObject(int) - Method in class org.json.WritableJSONArray
Get the optional JSONObject associated with an index.
optJSONObject(String) - Method in class org.json.WritableJSONObject
Get an optional JSONObject associated with a key.
optLong(int) - Method in interface org.json.JSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in interface org.json.JSONArray
Get the optional long value associated with an index.
optLong(String) - Method in interface org.json.JSONObject
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
optLong(String, long) - Method in interface org.json.JSONObject
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
optLong(int) - Method in class org.json.ListBasedJSONArray
Get the optional long value associated with an index.
optLong(int, long) - Method in class org.json.ListBasedJSONArray
Get the optional long value associated with an index.
optLong(String) - Method in class org.json.MapBasedJSONObject
Get an optional long value associated with a key, or zero if there is no such key or if the value is not a number.
optLong(String, long) - Method in class org.json.MapBasedJSONObject
Get an optional long value associated with a key, or the default if there is no such key or if the value is not a number.
optLong(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optLong(int, long) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optLong(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optLong(String, long) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optString(int) - Method in interface org.json.JSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in interface org.json.JSONArray
Get the optional string associated with an index.
optString(String) - Method in interface org.json.JSONObject
Get an optional string associated with a key.
optString(String, String) - Method in interface org.json.JSONObject
Get an optional string associated with a key.
optString(int) - Method in class org.json.ListBasedJSONArray
Get the optional string value associated with an index.
optString(int, String) - Method in class org.json.ListBasedJSONArray
Get the optional string associated with an index.
optString(String) - Method in class org.json.MapBasedJSONObject
Get an optional string associated with a key.
optString(String, String) - Method in class org.json.MapBasedJSONObject
Get an optional string associated with a key.
optString(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optString(int, String) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
optString(String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
optString(String, String) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
org.json - package org.json
 

P

populateArrayBuilder(JSONTokener<A, O>, JSONArrayBuilder<A>) - Static method in class org.json.JSONParser
 
populateObjectBuilder(JSONTokener<A, O>, JSONObjectBuilder<O>) - Static method in class org.json.JSONParser
 
put(String, boolean) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
put(String, double) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
put(String, int) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
put(String, long) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
put(String, Object) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
put(Object) - Method in class org.json.ImmutableJSONArray.Builder
 
put(String, boolean) - Method in class org.json.ImmutableJSONObject
 
put(String, double) - Method in class org.json.ImmutableJSONObject
 
put(String, int) - Method in class org.json.ImmutableJSONObject
 
put(String, long) - Method in class org.json.ImmutableJSONObject
 
put(String, Object) - Method in class org.json.ImmutableJSONObject
 
put(boolean) - Method in interface org.json.JSONArray
Append a boolean value.
put(double) - Method in interface org.json.JSONArray
Append a double value.
put(int) - Method in interface org.json.JSONArray
Append an int value.
put(long) - Method in interface org.json.JSONArray
Append an long value.
put(Object) - Method in interface org.json.JSONArray
Append an object value.
put(int, boolean) - Method in interface org.json.JSONArray
Put or replace a boolean value in the JSONArray.
put(int, double) - Method in interface org.json.JSONArray
Put or replace a double value.
put(int, int) - Method in interface org.json.JSONArray
Put or replace an int value.
put(int, long) - Method in interface org.json.JSONArray
Put or replace a long value.
put(int, Object) - Method in interface org.json.JSONArray
Put or replace an object value in the JSONArray.
put(Object) - Method in interface org.json.JSONArrayBuilder
 
put(String, boolean) - Method in interface org.json.JSONObject
Put a key/boolean pair in the JSONObject.
put(String, double) - Method in interface org.json.JSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in interface org.json.JSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in interface org.json.JSONObject
Put a key/long pair in the JSONObject.
put(String, Object) - Method in interface org.json.JSONObject
Put a key/value pair in the JSONObject.
put(boolean) - Method in class org.json.ListBasedJSONArray
Append a boolean value.
put(double) - Method in class org.json.ListBasedJSONArray
Append a double value.
put(int) - Method in class org.json.ListBasedJSONArray
Append an int value.
put(long) - Method in class org.json.ListBasedJSONArray
Append an long value.
put(Object) - Method in class org.json.ListBasedJSONArray
Append an object value.
put(int, boolean) - Method in class org.json.ListBasedJSONArray
Put or replace a boolean value in the JSONArray.
put(int, double) - Method in class org.json.ListBasedJSONArray
Put or replace a double value.
put(int, int) - Method in class org.json.ListBasedJSONArray
Put or replace an int value.
put(int, long) - Method in class org.json.ListBasedJSONArray
Put or replace a long value.
put(int, Object) - Method in class org.json.ListBasedJSONArray
Put or replace an object value in the JSONArray.
put(boolean) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(double) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(long) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(Object) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int, boolean) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int, double) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int, int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int, long) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(int, Object) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
put(Object) - Method in class org.json.WritableJSONArray.Builder
 
put(String, boolean) - Method in class org.json.WritableJSONObject
Put a key/boolean pair in the JSONObject.
put(String, double) - Method in class org.json.WritableJSONObject
Put a key/double pair in the JSONObject.
put(String, int) - Method in class org.json.WritableJSONObject
Put a key/int pair in the JSONObject.
put(String, long) - Method in class org.json.WritableJSONObject
Put a key/long pair in the JSONObject.
put(String, Object) - Method in class org.json.WritableJSONObject
Put a key/value pair in the JSONObject.
putOnce(String, Object) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
putOnce(String, Object) - Method in class org.json.ImmutableJSONObject.Builder
 
putOnce(String, Object) - Method in class org.json.ImmutableJSONObject
 
putOnce(String, Object) - Method in interface org.json.JSONObject
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.
putOnce(String, Object) - Method in interface org.json.JSONObjectBuilder
 
putOnce(String, Object) - Method in class org.json.WritableJSONObject.Builder
 
putOnce(String, Object) - Method in class org.json.WritableJSONObject
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.
putOpt(String, Object) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
putOpt(String, Object) - Method in class org.json.ImmutableJSONObject
 
putOpt(String, Object) - Method in interface org.json.JSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
putOpt(String, Object) - Method in class org.json.WritableJSONObject
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.

Q

quote(String) - Static method in class org.json.JSONComponents
Produce a string in double quotes with backslash sequences in all the right places.
quote(String, Appendable) - Static method in class org.json.JSONComponents
 

R

remove(String) - Method in class org.json.AbstractUnmodifiableJSONObject
Deprecated.
 
remove(String) - Method in class org.json.ImmutableJSONObject
 
remove(int) - Method in interface org.json.JSONArray
Remove an index and close the hole.
remove(Object) - Method in interface org.json.JSONArray
Remove the first instance of an Object from the array.
remove(String) - Method in interface org.json.JSONObject
Remove a name and its value, if present.
remove(int) - Method in class org.json.ListBasedJSONArray
Remove an index and close the hole.
remove(Object) - Method in class org.json.ListBasedJSONArray
 
remove() - Method in class org.json.UnmodifiableIterator
Deprecated.
 
remove(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
remove(Object) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
remove(String) - Method in class org.json.WritableJSONObject
Remove a name and its value, if present.

S

skipTo(char) - Method in class org.json.JSONTokenerReader
Skip characters until the next character is the requested character.
sortedKeys() - Method in interface org.json.JSONObject
Get an enumeration of the keys of the JSONObject.
sortedKeys() - Method in class org.json.MapBasedJSONObject
Get an Iterator of the keys of the JSONObject.
sortedKeys() - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
StringCharBuilder - Class in org.json
simplified copy of StringBuilder that only supports appending characters and which also supports efficient resuse.
stringToValue(String) - Static method in class org.json.JSONComponents
Try to convert a string into a number, boolean, or null.
stripNULL(Object) - Static method in class org.json.JSONUtils
Deprecated.
substring(int, int) - Method in class org.json.StringCharBuilder
 
syntaxError(String) - Method in interface org.json.JSONTokener
 
syntaxError(String) - Method in class org.json.JSONTokenerReader
Make a JSONException to signal a syntax error.
syntaxError(String) - Method in class org.json.JSONTokenerString
 

T

Test - Class in org.json
Test class.
Test() - Constructor for class org.json.Test
 
testNull() - Method in class org.json.Test
 
testValidity(Object) - Static method in class org.json.JSONComponents
Throw an exception if the object is a NaN or infinite number.
toJSONArray(Iterable<?>) - Method in class org.json.JSONBuilder
 
toJSONArray(JSONArray) - Method in class org.json.JSONBuilder
 
toJSONArray(JSONTokener<A, O>) - Method in class org.json.JSONBuilder
 
toJSONArray(Reader) - Method in class org.json.JSONBuilder
 
toJSONArray(String) - Method in class org.json.JSONBuilder
 
toJSONObject(JSONObject) - Method in class org.json.JSONBuilder
 
toJSONObject(JSONTokener<A, O>) - Method in class org.json.JSONBuilder
 
toJSONObject(Reader) - Method in class org.json.JSONBuilder
 
toJSONObject(String) - Method in class org.json.JSONBuilder
 
toJSONString() - Method in interface org.json.JSONString
The toJSONString method allows a class to produce its own JSON serialization.
toJSONString(Appendable) - Method in interface org.json.JSONString
Serialize yourself to JSON and append the representation to the given Appendable.
toString(JSONArray) - Static method in class org.json.JSONArrays
 
toString(JSONArray, int, int) - Static method in class org.json.JSONArrays
 
toString() - Method in interface org.json.JSONComponent
Make a JSON text of this JSONObject.
toString(int) - Method in interface org.json.JSONComponent
Make a prettyprinted JSON text of this JSONObject.
toString(int, int) - Method in interface org.json.JSONComponent
Make a prettyprinted JSON text of this JSONObject.
toString(JSONObject) - Static method in class org.json.JSONObjects
 
toString(JSONObject, int, int) - Static method in class org.json.JSONObjects
 
toString() - Method in class org.json.JSONTokenerReader
Make a printable string of this JSONTokener.
toString() - Method in class org.json.ListBasedJSONArray
Make a JSON text of this JSONArray.
toString(int) - Method in class org.json.ListBasedJSONArray
Make a prettyprinted JSON text of this JSONArray.
toString(int, int) - Method in class org.json.ListBasedJSONArray
Make a prettyprinted JSON text of this JSONArray.
toString(MapBasedJSONObject) - Static method in class org.json.MapBasedJSONObject
 
toString() - Method in class org.json.MapBasedJSONObject
Make a JSON text of this JSONObject.
toString(int) - Method in class org.json.MapBasedJSONObject
Make a prettyprinted JSON text of this JSONObject.
toString(int, int) - Method in class org.json.MapBasedJSONObject
Make a prettyprinted JSON text of this JSONObject.
toString() - Method in class org.json.Null
Get the "null" string value.
toString() - Method in class org.json.StringCharBuilder
 
toString(int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
toString() - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
toString(int, int) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
toString(int) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
toString() - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
toString(int, int) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 

U

UNCLAIMED - Static variable in class org.json.StringCharBuilder
 
unmodifiable(Object) - Static method in class org.json.JSONUtils
Deprecated.
unmodifiable(JSONObject) - Static method in class org.json.JSONUtils
Deprecated.
unmodifiable(JSONArray) - Static method in class org.json.JSONUtils
Deprecated.
UnmodifiableIterator<T> - Class in org.json
Deprecated.
UnmodifiableIterator(Iterator<T>) - Constructor for class org.json.UnmodifiableIterator
Deprecated.
 
UnmodifiableJSONArray - Class in org.json
Deprecated.
UnmodifiableJSONObject - Class in org.json
Deprecated.

V

valueToString(Object) - Static method in class org.json.JSONComponents
Make a JSON text of an Object value.

W

wrap(Object) - Method in class org.json.JSONBuilder
Wrap an object, if necessary.
writableDeepCopy(JSONObject) - Static method in class org.json.JSONUtils
Deprecated.
writableDeepCopy(JSONArray) - Static method in class org.json.JSONUtils
Deprecated.
WritableJSON - Class in org.json
 
WritableJSONArray - Class in org.json
A JSONArray is an ordered sequence of values.
WritableJSONArray() - Constructor for class org.json.WritableJSONArray
Construct an empty JSONArray.
WritableJSONArray.Builder - Class in org.json
 
WritableJSONObject - Class in org.json
A JSONObject is an unordered collection of name/value pairs.
WritableJSONObject() - Constructor for class org.json.WritableJSONObject
Construct an empty JSONObject.
WritableJSONObject(String, Locale) - Constructor for class org.json.WritableJSONObject
Construct a JSONObject from a ResourceBundle.
WritableJSONObject.Builder - Class in org.json
 
write(JSONArray, Appendable, int, int) - Static method in class org.json.JSONArrays
Make a prettyprinted JSON text of this JSONArray.
write(JSONArray, Appendable) - Static method in class org.json.JSONArrays
Make a JSON text of this JSONArray.
write(Appendable) - Method in interface org.json.JSONComponent
Write the contents of the JSONComponent as JSON text to a writer.
write(JSONObject, Appendable) - Static method in class org.json.JSONObjects
 
write(JSONObject, Appendable, int, int) - Static method in class org.json.JSONObjects
 
write(Appendable) - Method in class org.json.ListBasedJSONArray
Write the contents of the JSONArray as JSON text to a writer.
write(Appendable) - Method in class org.json.MapBasedJSONObject
 
write(Appendable) - Method in class org.json.UnmodifiableJSONArray
Deprecated.
 
write(Appendable) - Method in class org.json.UnmodifiableJSONObject
Deprecated.
 
writeValue(Object, Appendable) - Static method in class org.json.JSONComponents
 
A B C D E G H I J K L M N O P Q R S T U V W 
Skip navigation links