Accumulate values under a key.
private void
Add an array's elements to the JSONArray.
private void
Add an array's elements to the JSONArray.
Append values to the array under a key.
Begin appending a new array.
void
JSONWriter.end(char m,
char c)
Get the object value associated with an index.
Get the value object associated with a key.
Get the BigDecimal value associated with an index.
Get the BigDecimal value associated with a key.
Get the BigInteger value associated with an index.
Get the BigInteger value associated with a key.
boolean
Get the boolean value associated with an index.
boolean
Get the boolean value associated with a key.
double
Get the double value associated with an index.
double
Get the double value associated with a key.
Get the enum value associated with an index.
Get the enum value associated with a key.
float
Get the float value associated with a key.
float
Get the float value associated with a key.
int
Get the int value associated with an index.
int
Get the int value associated with a key.
Get the JSONArray associated with an index.
Get the JSONArray value associated with a key.
Get the JSONObject associated with an index.
Get the JSONObject value associated with a key.
long
Get the long value associated with an index.
long
Get the long value associated with a key.
Get the Number value associated with a key.
Get the Number value associated with a key.
Get the string associated with an index.
Get the string associated with a key.
Increment a property of a JSONObject.
Make a string from the contents of this JSONArray.
boolean
Determine if the source string still contains characters that next()
can consume.
char
Get the next character in the source string.
char
Consume the next character, and check that it matches a specified
character.
Get the next n characters.
Get the text in the CDATA block.
char
Get the next char in the string, skipping whitespace.
Get the next XML outer token, trimming whitespace.
Return the next entity. These entities are translated to Characters:
& ' > < ".
Returns the next XML meta token. This is used for skipping over <!...>
and <?...?> structures.
Return the characters up to the next close quote character.
JSONTokener.nextTo(char delimiter)
Get the text up but not including the specified character or the
end of line, whichever comes first.
Get the text up but not including one of the specified delimiter
characters or the end of line, whichever comes first.
Get the next token or string.
Get the next XML Token. These tokens are found inside of angle
brackets. It may be one of these characters: / > = ! ? or it
may be a string wrapped in single quotes or double quotes, or it may be a
name.
static void
Throw an exception if the string contains whitespace.
Produce a string from a Number.
Begin appending a new object.
Parse XML values and store them in a JSONArray.
Parse XML values and store them in a JSONArray.
private static boolean
Scan the content following the named tag, attaching it to the context.
private void
Pop an array or object scope.
private void
Push an array or object scope.
JSONArray.put(double value)
JSONArray.put(float value)
JSONArray.put(int index,
boolean value)
Put or replace a boolean value in the JSONArray.
JSONArray.put(int index,
double value)
Put or replace a double value.
JSONArray.put(int index,
float value)
Put or replace a float value.
JSONArray.put(int index,
int value)
Put or replace an int value.
JSONArray.put(int index,
long value)
Put or replace a long value.
Put or replace an object value in the JSONArray.
Put a value in the JSONArray, where the value will be a JSONArray which
is produced from a Collection.
JSONArray.put(int index,
Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
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 an array's elements in to the JSONArray.
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.
Produce a JSONArray of strings from a row of comma delimited values.
Produce a JSONArray of strings from a row of comma delimited values.
Produce a JSONObject from a row of comma delimited text, using a
parallel JSONArray of strings to provides the names of the elements.
Produce a JSONObject from a row of comma delimited text, using a
parallel JSONArray of strings to provides the names of the elements.
char
Skip characters until the next character is the requested character.
static void
Throw an exception if the object is a NaN or infinite number.
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
Produce a JSONArray of JSONObjects from a comma delimited text string
using a supplied JSONArray as the source of element names.
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
Produce a JSONArray of JSONObjects from a comma delimited text string,
using the first row as a source of names.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
Produce a JSONArray containing the values of the members of this
JSONObject.
Convert a cookie list into a JSONObject.
Convert an HTTP header string into a JSONObject.
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
Converts a property file object into a JSONObject.
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
Convert a well-formed (but not necessarily valid) XML into a
JSONObject.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject.
Converts the JSONObject into a property file object.
Produce a comma delimited text from a JSONArray of JSONObjects.
Produce a comma delimited text from a JSONArray of JSONObjects.
Produce a comma delimited text from a JSONArray of JSONObjects using
a provided list of names.
Produce a comma delimited text from a JSONArray of JSONObjects using
a provided list of names.
Convert a JSONObject into a cookie specification string.
Convert a JSONObject into a cookie list.
Convert a JSONObject into an HTTP header.
Make a pretty-printed JSON text of this JSONArray.
Reverse the JSONML transformation, making an XML text from a JSONArray.
Reverse the JSONML transformation, making an XML text from a JSONObject.
Make a pretty-printed JSON text of this JSONObject.
Convert a JSONObject into a well-formed, element-normal XML string.
Convert a JSONObject into a well-formed, element-normal XML string.
Convert a JSONObject into a well-formed, pretty printed element-normal XML string.
Convert a JSONObject into a well-formed, element-normal XML string,
either pretty print or single-lined depending on indent factor.
JSONWriter.value(boolean b)
Append either the value true
or the value
false
.
JSONWriter.value(double d)
Make a JSON text of an Object value.
Make a JSON text of an Object value.
Write the contents of the JSONArray as JSON text to a writer.
JSONArray.write(Writer writer,
int indentFactor,
int indent)
Write the contents of the JSONArray as JSON text to a writer.
Write the contents of the JSONObject as JSON text to a writer.
JSONObject.write(Writer writer,
int indentFactor,
int indent)
Write the contents of the JSONObject as JSON text to a writer.
(package private) static final Writer