A B C D E G H I J K L M N O P Q R S T V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accumulate(String, Object) - Method in class com.github.openjson.JSONObject
-
Appends
valueto the array already mapped toname. - append(String, Object) - Method in class com.github.openjson.JSONObject
-
Appends values to the array mapped to
name. - array() - Method in class com.github.openjson.JSONStringer
-
Begins encoding a new array.
B
- back() - Method in class com.github.openjson.JSONTokener
-
Unreads the most recent character of input.
C
- com.github.openjson - package com.github.openjson
- createKey(String) - Method in class com.github.openjson.JSONStringer
-
Creates String representation of the key (property name) to this stringer Override this method to provide your own representation of the name.
D
- dehexchar(char) - Static method in class com.github.openjson.JSONTokener
-
Returns the integer [0..15] value for the given hex character, or -1 for non-hex input.
E
- encode(JSONStringer) - Method in class com.github.openjson.JSONArray
-
Encodes this array using
JSONStringerprovided - encode(JSONStringer) - Method in class com.github.openjson.JSONObject
-
Encodes this object using
JSONStringerprovided - endArray() - Method in class com.github.openjson.JSONStringer
-
Ends encoding the current array.
- endObject() - Method in class com.github.openjson.JSONStringer
-
Ends encoding the current object.
- entry(Map.Entry<String, Object>) - Method in class com.github.openjson.JSONStringer
-
Encodes
key/valuepair to this stringer. - equals(Object) - Method in class com.github.openjson.JSONArray
G
- get(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
index. - get(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
name, or throws if no such mapping exists. - getBoolean(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a boolean or can be coerced to a boolean. - getBoolean(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a boolean or can be coerced to a boolean, or throws otherwise. - getDouble(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a double or can be coerced to a double. - getDouble(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a double or can be coerced to a double, or throws otherwise. - getInt(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is an int or can be coerced to an int. - getInt(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is an int or can be coerced to an int, or throws otherwise. - getJSONArray(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is aJSONArray. - getJSONArray(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is aJSONArray, or throws otherwise. - getJSONObject(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is aJSONObject. - getJSONObject(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is aJSONObject, or throws otherwise. - getLong(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a long or can be coerced to a long. - getLong(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a long or can be coerced to a long, or throws otherwise. - getNames(JSONObject) - Static method in class com.github.openjson.JSONObject
- getString(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists, coercing it if necessary. - getString(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists, coercing it if necessary, or throws if no such mapping exists.
H
- has(String) - Method in class com.github.openjson.JSONObject
-
Returns true if this object has a mapping for
name. - hashCode() - Method in class com.github.openjson.JSONArray
I
- isNull(int) - Method in class com.github.openjson.JSONArray
-
Returns true if this array has no value at
index, or if its value is thenullreference orJSONObject.NULL. - isNull(String) - Method in class com.github.openjson.JSONObject
-
Returns true if this object has no mapping for
nameor if it has a mapping whose value isJSONObject.NULL.
J
- join(String) - Method in class com.github.openjson.JSONArray
-
Returns a new string by alternating this array's values with
separator. - JSONArray - Class in com.github.openjson
-
A dense indexed sequence of values.
- JSONArray() - Constructor for class com.github.openjson.JSONArray
-
Creates a
JSONArraywith no values. - JSONArray(JSONTokener) - Constructor for class com.github.openjson.JSONArray
-
Creates a new
JSONArraywith values from the next array in the tokener. - JSONArray(Object) - Constructor for class com.github.openjson.JSONArray
-
Creates a new
JSONArraywith values from the given primitive array. - JSONArray(String) - Constructor for class com.github.openjson.JSONArray
-
Creates a new
JSONArraywith values from the JSON string. - JSONArray(Collection<?>) - Constructor for class com.github.openjson.JSONArray
-
Creates a new
JSONArrayby copying all values from the given collection. - JSONException - Exception in com.github.openjson
-
Thrown to indicate a problem with the JSON API.
- JSONException(String) - Constructor for exception com.github.openjson.JSONException
- JSONException(Throwable) - Constructor for exception com.github.openjson.JSONException
- JSONObject - Class in com.github.openjson
-
A modifiable set of name/value mappings.
- JSONObject() - Constructor for class com.github.openjson.JSONObject
-
Creates a
JSONObjectwith no name/value mappings. - JSONObject(JSONObject, String[]) - Constructor for class com.github.openjson.JSONObject
-
Creates a new
JSONObjectby copying mappings for the listed names from the given object. - JSONObject(JSONTokener) - Constructor for class com.github.openjson.JSONObject
-
Creates a new
JSONObjectwith name/value mappings from the next object in the tokener. - JSONObject(Object) - Constructor for class com.github.openjson.JSONObject
-
Creates a json object from a bean
- JSONObject(String) - Constructor for class com.github.openjson.JSONObject
-
Creates a new
JSONObjectwith name/value mappings from the JSON string. - JSONObject(Map) - Constructor for class com.github.openjson.JSONObject
-
Creates a new
JSONObjectby copying all name/value mappings from the given map. - JSONString - Interface in com.github.openjson
-
The
JSONStringinterface allows atoJSONString()method so that a class can change the behavior ofJSONObject.toString(),JSONArray.toString(), andJSONWriter.value(Object). - JSONStringer - Class in com.github.openjson
-
Implements
JSONObject.toString()andJSONArray.toString(). - JSONStringer() - Constructor for class com.github.openjson.JSONStringer
- JSONStringer(int) - Constructor for class com.github.openjson.JSONStringer
- JSONTokener - Class in com.github.openjson
-
Parses a JSON (RFC 4627) encoded string into the corresponding object.
- JSONTokener(Reader) - Constructor for class com.github.openjson.JSONTokener
- JSONTokener(String) - Constructor for class com.github.openjson.JSONTokener
K
- key(String) - Method in class com.github.openjson.JSONStringer
-
Encodes the key (property name) to this stringer.
- keys() - Method in class com.github.openjson.JSONObject
-
Returns an iterator of the
Stringnames in this object. - keySet() - Method in class com.github.openjson.JSONObject
-
Returns the set of
Stringnames in this object.
L
- length() - Method in class com.github.openjson.JSONArray
- length() - Method in class com.github.openjson.JSONObject
-
Returns the number of name/value mappings in this object.
M
- more() - Method in class com.github.openjson.JSONTokener
-
Returns true until the input has been exhausted.
N
- names() - Method in class com.github.openjson.JSONObject
-
Returns an array containing the string names in this object.
- next() - Method in class com.github.openjson.JSONTokener
-
Returns the next available character, or the null character '\0' if all input has been exhausted.
- next(char) - Method in class com.github.openjson.JSONTokener
-
Returns the next available character if it equals
c. - next(int) - Method in class com.github.openjson.JSONTokener
-
Returns the next
lengthcharacters of the input. - nextClean() - Method in class com.github.openjson.JSONTokener
-
Returns the next character that is not whitespace and does not belong to a comment.
- nextString(char) - Method in class com.github.openjson.JSONTokener
-
Returns the string up to but not including
quote, unescaping any character escape sequences encountered along the way. - nextTo(char) - Method in class com.github.openjson.JSONTokener
-
Equivalent to
nextTo(String.valueOf(excluded)). - nextTo(String) - Method in class com.github.openjson.JSONTokener
-
Returns the
trimmedstring holding the characters up to but not including the first of: any character inexcludeda newline character '\n' a carriage return '\r' - nextValue() - Method in class com.github.openjson.JSONTokener
-
Returns the next value from the input.
- NULL - Static variable in class com.github.openjson.JSONObject
-
A sentinel value used to explicitly define a name with no value.
- numberToString(Number) - Static method in class com.github.openjson.JSONObject
-
Encodes the number as a JSON string.
O
- object() - Method in class com.github.openjson.JSONStringer
-
Begins encoding a new object.
- objectAsMap(Object) - Static method in class com.github.openjson.JSONObject
-
Creates a name-value map from a bean
- opt(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
index, or null if the array has no value atindex. - opt(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
name, or null if no such mapping exists. - optBoolean(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a boolean or can be coerced to a boolean. - optBoolean(int, boolean) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a boolean or can be coerced to a boolean. - optBoolean(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a boolean or can be coerced to a boolean, or false otherwise. - optBoolean(String, boolean) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a boolean or can be coerced to a boolean, orfallbackotherwise. - optDouble(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a double or can be coerced to a double. - optDouble(int, double) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a double or can be coerced to a double. - optDouble(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a double or can be coerced to a double, orNaNotherwise. - optDouble(String, double) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a double or can be coerced to a double, orfallbackotherwise. - optInt(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is an int or can be coerced to an int. - optInt(int, int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is an int or can be coerced to an int. - optInt(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is an int or can be coerced to an int, or 0 otherwise. - optInt(String, int) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is an int or can be coerced to an int, orfallbackotherwise. - optJSONArray(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is aJSONArray. - optJSONArray(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is aJSONArray, or null otherwise. - optJSONObject(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is aJSONObject. - optJSONObject(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is aJSONObject, or null otherwise. - optLong(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a long or can be coerced to a long. - optLong(int, long) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists and is a long or can be coerced to a long. - optLong(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a long or can be coerced to a long, or 0 otherwise. - optLong(String, long) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists and is a long or can be coerced to a long, orfallbackotherwise. - optString(int) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists, coercing it if necessary. - optString(int, String) - Method in class com.github.openjson.JSONArray
-
Returns the value at
indexif it exists, coercing it if necessary. - optString(String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists, coercing it if necessary, or the empty string if no such mapping exists. - optString(String, String) - Method in class com.github.openjson.JSONObject
-
Returns the value mapped by
nameif it exists, coercing it if necessary, orfallbackif no such mapping exists. - out - Variable in class com.github.openjson.JSONStringer
-
The output data, containing at most one top-level array or object.
P
- put(boolean) - Method in class com.github.openjson.JSONArray
-
Appends
valueto the end of this array. - put(double) - Method in class com.github.openjson.JSONArray
-
Appends
valueto the end of this array. - put(int) - Method in class com.github.openjson.JSONArray
-
Appends
valueto the end of this array. - put(int, boolean) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovalue, null padding this array to the required length if necessary. - put(int, double) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovalue, null padding this array to the required length if necessary. - put(int, int) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovalue, null padding this array to the required length if necessary. - put(int, long) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovalue, null padding this array to the required length if necessary. - put(int, Object) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovalue, null padding this array to the required length if necessary. - put(int, Collection<?>) - Method in class com.github.openjson.JSONArray
-
Sets the value at
indextovaluewrapped intoJSONArray, null padding this array to the required length if necessary. - put(long) - Method in class com.github.openjson.JSONArray
-
Appends
valueto the end of this array. - put(Object) - Method in class com.github.openjson.JSONArray
-
Appends
valueto the end of this array. - put(String, boolean) - Method in class com.github.openjson.JSONObject
-
Maps
nametovalue, clobbering any existing name/value mapping with the same name. - put(String, double) - Method in class com.github.openjson.JSONObject
-
Maps
nametovalue, clobbering any existing name/value mapping with the same name. - put(String, int) - Method in class com.github.openjson.JSONObject
-
Maps
nametovalue, clobbering any existing name/value mapping with the same name. - put(String, long) - Method in class com.github.openjson.JSONObject
-
Maps
nametovalue, clobbering any existing name/value mapping with the same name. - put(String, Object) - Method in class com.github.openjson.JSONObject
-
Maps
nametovalue, clobbering any existing name/value mapping with the same name. - put(Collection<?>) - Method in class com.github.openjson.JSONArray
-
Appends
valuewrapped byJSONArrayto the end of this array. - putOpt(String, Object) - Method in class com.github.openjson.JSONObject
-
Equivalent to
put(name, value)when both parameters are non-null; does nothing otherwise.
Q
- quote(String) - Static method in class com.github.openjson.JSONObject
-
Encodes
dataas a JSON string.
R
- remove(int) - Method in class com.github.openjson.JSONArray
-
Removes and returns the value at
index, or null if the array has no value atindex. - remove(String) - Method in class com.github.openjson.JSONObject
-
Removes the named mapping if it exists; does nothing otherwise.
S
- skipPast(String) - Method in class com.github.openjson.JSONTokener
-
Advances past all input up to and including the next occurrence of
thru. - skipTo(char) - Method in class com.github.openjson.JSONTokener
-
Advances past all input up to but not including the next occurrence of
to. - syntaxError(String) - Method in class com.github.openjson.JSONTokener
-
Returns an exception containing the given message plus the current position and the entire input string.
T
- toJSONArray(JSONArray) - Method in class com.github.openjson.JSONObject
-
Returns an array with the values corresponding to
names. - toJSONObject(JSONArray) - Method in class com.github.openjson.JSONArray
-
Returns a new object whose values are the values in this array, and whose names are the values in
names. - toJSONString() - Method in interface com.github.openjson.JSONString
-
The
toJSONStringmethod allows a class to produce its own JSON serialization. - toString() - Method in class com.github.openjson.JSONArray
-
Encodes this array as a compact JSON string, such as:
- toString() - Method in class com.github.openjson.JSONObject
-
Encodes this object as a compact JSON string, such as:
- toString() - Method in class com.github.openjson.JSONStringer
-
Returns the encoded JSON string.
- toString() - Method in class com.github.openjson.JSONTokener
-
Returns the current position and the entire input string.
- toString(int) - Method in class com.github.openjson.JSONArray
-
Encodes this array as a human readable JSON string for debugging, such as:
- toString(int) - Method in class com.github.openjson.JSONObject
-
Encodes this object as a human readable JSON string for debugging, such as:
- toString(JSONStringer) - Method in class com.github.openjson.JSONArray
-
Encodes this array using
JSONStringerprovided - toString(JSONStringer) - Method in class com.github.openjson.JSONObject
-
Encodes this object using
JSONStringerprovided
V
- value(boolean) - Method in class com.github.openjson.JSONStringer
-
Encodes
valueto this stringer. - value(double) - Method in class com.github.openjson.JSONStringer
-
Encodes
valueto this stringer. - value(long) - Method in class com.github.openjson.JSONStringer
-
Encodes
valueto this stringer. - value(Object) - Method in class com.github.openjson.JSONStringer
-
Encodes
value.
W
- wrap(Object) - Static method in class com.github.openjson.JSONObject
-
Wraps the given object if necessary.
All Classes All Packages