+
+
+
+
+
+
+
Accumulate values under a key.
+
+
+
+
+
Append values to the array under a key.
+
+
void
+
+
+
Removes all of the elements from this JSONObject.
+
+
+
+
+
Produce a string from a double.
+
+
+
+
+
Get a set of entries of the JSONObject.
+
+
+
+
+
Get the value object associated with a key.
+
+
+
+
+
Get the BigDecimal value associated with a key.
+
+
+
+
+
Get the BigInteger value associated with a key.
+
+
boolean
+
+
+
Get the boolean value associated with a key.
+
+
double
+
+
+
Get the double value associated with a key.
+
+
+
+
+
Get the enum value associated with a key.
+
+
float
+
+
+
Get the float value associated with a key.
+
+
int
+
+
+
Get the int value associated with a key.
+
+
+
+
+
Get the JSONArray value associated with a key.
+
+
+
+
+
Get the JSONObject value associated with a key.
+
+
long
+
+
+
Get the long value associated with a key.
+
+
+
+
+
Retrieves the type of the underlying Map in this class.
+
+
+
+
+
Get an array of public field names from an Object.
+
+
+
+
+
Get an array of field names from a JSONObject.
+
+
+
+
+
Get the Number value associated with a key.
+
+
+
+
+
Get the string associated with a key.
+
+
boolean
+
+
+
Determine if the JSONObject contains a specific key.
+
+
+
+
+
Increment a property of a JSONObject.
+
+
protected static boolean
+
+
+
Tests if the value should be tried as a decimal.
+
+
boolean
+
+
+
Check if JSONObject is empty.
+
+
boolean
+
+
+
Determine if the value associated with the key is null
or if there is no
+ value.
+
+
+
+
+
Get an enumeration of the keys of the JSONObject.
+
+
+
+
+
Get a set of keys of the JSONObject.
+
+
int
+
+
+
Get the number of keys stored in the JSONObject.
+
+
+
+
+
Produce a JSONArray containing the names of the elements of this
+ JSONObject.
+
+
+
+
+
Produce a string from a Number.
+
+
+
+
+
Get an optional value associated with a key.
+
+
+
+
+
Get an optional BigDecimal associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+
+
+
+
+
Get an optional BigInteger associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+
+
boolean
+
+
+
Get an optional boolean associated with a key.
+
+
boolean
+
+
+
Get an optional boolean associated with a key.
+
+
+
+
+
Get an optional boolean object associated with a key.
+
+
+
+
+
Get an optional boolean object associated with a key.
+
+
double
+
+
+
Get an optional double associated with a key, or NaN if there is no such
+ key or if its value is not a number.
+
+
double
+
+
+
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.
+
+
+
+
+
Get an optional Double object associated with a key, or NaN if there is no such
+ key or if its value is not a number.
+
+
+
+
+
Get an optional Double object associated with a key, or the defaultValue if
+ there is no such key or if its value is not a number.
+
+
+
+
+
Get the enum value associated with a key.
+
+
+
+
+
Get the enum value associated with a key.
+
+
float
+
+
+
Get the optional float value associated with an index.
+
+
float
+
+
+
Get the optional float value associated with an index.
+
+
+
+
+
Get the optional Float object associated with an index.
+
+
+
+
+
Get the optional Float object associated with an index.
+
+
int
+
+
+
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.
+
+
int
+
+
+
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.
+
+
+
+
+
Get an optional Integer object associated with a key, or zero if there is no
+ such key or if the value is not a number.
+
+
+
+
+
Get an optional Integer object associated with a key, or the default if there
+ is no such key or if the value is not a number.
+
+
+
+
+
Get an optional JSONArray associated with a key.
+
+
+
+
+
Get an optional JSONArray associated with a key, or the default if there
+ is no such key, or if its value is not a JSONArray.
+
+
+
+
+
Get an optional JSONObject associated with a key.
+
+
+
+
+
Get an optional JSONObject associated with a key, or the default if there
+ is no such key or if the value is not a JSONObject.
+
+
long
+
+
+
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.
+
+
long
+
+
+
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.
+
+
+
+
+
Get an optional Long object associated with a key, or zero if there is no
+ such key or if the value is not a number.
+
+
+
+
+
Get an optional Long object associated with a key, or the default if there
+ is no such key or if the value is not a number.
+
+
+
+
+
Get an optional
Number
value associated with a key, or
null
+ if there is no such key or if the value is not a number.
+
+
+
+
+
Get an optional
Number
value associated with a key, or the default if there
+ is no such key or if the value is not a number.
+
+
+
+
+
Queries and returns a value from this object using jsonPointer
, or
+ returns null if the query fails due to a missing key.
+
+
+
+
+
Queries and returns a value from this object using jsonPointer
, or
+ returns null if the query fails due to a missing key.
+
+
+
+
+
Get an optional string associated with a key.
+
+
+
+
+
Get an optional string associated with a key.
+
+
+
+
+
Put a key/boolean pair in the JSONObject.
+
+
+
+
+
Put a key/double pair in the JSONObject.
+
+
+
+
+
Put a key/float pair in the JSONObject.
+
+
+
+
+
Put a key/int pair in the JSONObject.
+
+
+
+
+
Put a key/long pair in the JSONObject.
+
+
+
+
+
Put a key/value pair in the JSONObject.
+
+
+
+
+
Put a key/value pair in the JSONObject, where the value will be a
+ JSONArray which is produced from a Collection.
+
+
+
+
+
Put a key/value pair in the JSONObject, where the value will be a
+ JSONObject which is produced from a Map.
+
+
+
+
+
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.
+
+
+
+
+
Put a key/value pair in the JSONObject, but only if the key and the value
+ are both non-null.
+
+
+
+
+
Creates a JSONPointer using an initialization string and tries to
+ match it to an item within this JSONObject.
+
+
+
+
+
Uses a user initialized JSONPointer and tries to
+ match it to an item within this JSONObject.
+
+
+
+
+
Produce a string in double quotes with backslash sequences in all the
+ right places.
+
+
+
+
+
Quotes a string and appends the result to a given Writer.
+
+
+
+
+
Remove a name and its value, if present.
+
+
boolean
+
+
+
Determine if two JSONObjects are similar.
+
+
+
+
+
Converts a string to a number using the narrowest possible type.
+
+
+
+
+
Try to convert a string into a number, boolean, or null.
+
+
static void
+
+
+
Throw an exception if the object is a NaN or infinite number.
+
+
+
+
+
Produce a JSONArray containing the values of the members of this
+ JSONObject.
+
+
+
+
+
Returns a java.util.Map containing all of the entries in this object.
+
+
+
+
+
Make a JSON text of this JSONObject.
+
+
+
+
+
Make a pretty-printed JSON text of this JSONObject.
+
+
+
+
+
Make a JSON text of an Object value.
+
+
+
+
+
Wrap an object, if necessary.
+
+
+
+
+
Write the contents of the JSONObject as JSON text to a writer.
+
+
+
+
+
Write the contents of the JSONObject as JSON text to a writer.
+
+