Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accumulate(String, Object) - Method in class org.json.JSONObject
-
Accumulate values under a key.
- addAll(Iterable<?>, boolean) - Method in class org.json.JSONArray
-
Add an Iterable's elements to the JSONArray.
- addAll(Object, boolean) - Method in class org.json.JSONArray
-
Add an array's elements to the JSONArray.
- addAll(Object, boolean, int) - Method in class org.json.JSONArray
-
Add an array's elements to the JSONArray.
- addAll(Object, boolean, int, JSONParserConfiguration) - Method in class org.json.JSONArray
-
Add an array's elements to the JSONArray.
- addAll(Collection<?>, boolean, int, JSONParserConfiguration) - Method in class org.json.JSONArray
-
Add a collection's elements to the JSONArray.
- AMP - Static variable in class org.json.XML
-
The Character '&'.
- APOS - Static variable in class org.json.XML
-
The Character '''.
- append(int) - Method in class org.json.JSONPointer.Builder
-
Adds an integer to the reference token list.
- append(String) - Method in class org.json.JSONPointer.Builder
-
Adds an arbitrary token to the list of reference tokens.
- append(String) - Method in class org.json.JSONWriter
-
Append a value.
- append(String, Object) - Method in class org.json.JSONObject
-
Append values to the array under a key.
- array() - Method in class org.json.JSONWriter
-
Begin appending a new array.
B
- back() - Method in class org.json.JSONTokener
-
Back up one character.
- BANG - Static variable in class org.json.XML
-
The Character '!'.
- build() - Method in class org.json.JSONPointer.Builder
-
Creates a
JSONPointer
instance using the tokens previously set using theJSONPointer.Builder.append(String)
method calls. - builder() - Static method in class org.json.JSONPointer
-
Static factory method for
JSONPointer.Builder
. - Builder() - Constructor for class org.json.JSONPointer.Builder
-
Constructs a new Builder object.
C
- cDataTagName - Variable in class org.json.XMLParserConfiguration
-
The name of the key in a JSON Object that indicates a CDATA section.
- CDL - Class in org.json
-
This provides static methods to convert comma (or otherwise) delimited text into a JSONArray, and to convert a JSONArray into comma (or otherwise) delimited text.
- CDL() - Constructor for class org.json.CDL
-
Constructs a new CDL object.
- character - Variable in class org.json.JSONTokener
-
current read character position on the current line.
- characterPreviousLine - Variable in class org.json.JSONTokener
-
the number of characters read in the previous line.
- clear() - Method in class org.json.JSONArray
-
Removes all of the elements from this JSONArray.
- clear() - Method in class org.json.JSONObject
-
Removes all of the elements from this JSONObject.
- clone() - Method in class org.json.JSONMLParserConfiguration
-
Provides a new instance of the same configuration.
- clone() - Method in class org.json.JSONObject.Null
-
There is only intended to be a single instance of the NULL object, so the clone method returns itself.
- clone() - Method in class org.json.JSONParserConfiguration
- clone() - Method in class org.json.ParserConfiguration
-
Provides a new instance of the same configuration.
- clone() - Method in class org.json.XMLParserConfiguration
-
Provides a new instance of the same configuration.
- close() - Method in class org.json.JSONTokener
-
Closes the underlying reader, releasing any resources associated with it.
- closeEmptyTag - Variable in class org.json.XMLParserConfiguration
-
When creating an XML from JSON Object, an empty tag by default will self-close.
- codePointIterator(String) - Static method in class org.json.XML
-
Creates an iterator for navigating Code Points in a string instead of characters.
- comma - Variable in class org.json.JSONWriter
-
The comma flag determines if a comma should be output before the next value.
- configuration - Variable in class org.json.XMLTokener
- convert(String) - Method in interface org.json.XMLXsiTypeConverter
-
Converts an XML xsi:type attribute value to the specified type
T
. - convertNilAttributeToNull - Variable in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies if values with attribute xsi:nil="true" should be kept as attribute(
false
), or they should be converted tonull
(true
) - Cookie - Class in org.json
-
Convert a web browser cookie specification to a JSONObject and back.
- Cookie() - Constructor for class org.json.Cookie
-
Constructs a new Cookie object.
- CookieList - Class in org.json
-
Convert a web browser cookie list string to a JSONObject and back.
- CookieList() - Constructor for class org.json.CookieList
-
Constructs a new CookieList object.
- CRLF - Static variable in class org.json.HTTP
-
Carriage return/line feed.
D
- decrementIndexes() - Method in class org.json.JSONTokener
-
Decrements the indexes for the
JSONTokener.back()
method based on the previous character read. - DEFAULT_MAXIMUM_NESTING_DEPTH - Static variable in class org.json.JSONMLParserConfiguration
-
We can override the default maximum nesting depth if needed.
- DEFAULT_MAXIMUM_NESTING_DEPTH - Static variable in class org.json.ParserConfiguration
-
The default maximum nesting depth when parsing a document.
- dehexchar(char) - Static method in class org.json.JSONTokener
-
Get the hex value of a character (base16).
- doubleToString(double) - Static method in class org.json.JSONObject
-
Produce a string from a double.
E
- ENCODING - Static variable in class org.json.JSONPointer
- end() - Method in class org.json.JSONTokener
-
Checks if the end of the input has been reached.
- end(char, char) - Method in class org.json.JSONWriter
-
End something.
- endArray() - Method in class org.json.JSONWriter
-
End an array.
- endObject() - Method in class org.json.JSONWriter
-
End an object.
- entity - Static variable in class org.json.XMLTokener
-
The table of entity values.
- entrySet() - Method in class org.json.JSONObject
-
Get a set of entries of the JSONObject.
- eof - Variable in class org.json.JSONTokener
-
flag to indicate if the end of the input has been found.
- EQ - Static variable in class org.json.XML
-
The Character '='.
- equals(Object) - Method in class org.json.JSONObject.Null
-
A Null object is equal to the null value and to itself.
- escape(String) - Static method in class org.json.Cookie
-
Produce a copy of a string in which the characters '+', '%', '=', ';' and control characters are replaced with "%hh".
- escape(String) - Static method in class org.json.JSONPointer
-
Escapes path segment values to an unambiguous form.
- escape(String) - Static method in class org.json.XML
-
Replace special characters with XML escapes:
F
- forceList - Variable in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies the tags whose values should be converted to arrays
G
- get(int) - Method in class org.json.JSONArray
-
Get the object value associated with an index.
- get(String) - Method in class org.json.JSONObject
-
Get the value object associated with a key.
- getAnnotation(Method, Class<A>) - Static method in class org.json.JSONObject
-
Searches the class hierarchy to see if the method or it's super implementations and interfaces has the annotation.
- getAnnotationDepth(Method, Class<? extends Annotation>) - Static method in class org.json.JSONObject
-
Searches the class hierarchy to see if the method or it's super implementations and interfaces has the annotation.
- getBigDecimal(int) - Method in class org.json.JSONArray
-
Get the BigDecimal value associated with an index.
- getBigDecimal(String) - Method in class org.json.JSONObject
-
Get the BigDecimal value associated with a key.
- getBigInteger(int) - Method in class org.json.JSONArray
-
Get the BigInteger value associated with an index.
- getBigInteger(String) - Method in class org.json.JSONObject
-
Get the BigInteger value associated with a key.
- getBoolean(int) - Method in class org.json.JSONArray
-
Get the boolean value associated with an index.
- getBoolean(String) - Method in class org.json.JSONObject
-
Get the boolean value associated with a key.
- getcDataTagName() - Method in class org.json.XMLParserConfiguration
-
The name of the key in a JSON Object that indicates a CDATA section.
- getDouble(int) - Method in class org.json.JSONArray
-
Get the double value associated with an index.
- getDouble(String) - Method in class org.json.JSONObject
-
Get the double value associated with a key.
- getEnum(Class<E>, int) - Method in class org.json.JSONArray
-
Get the enum value associated with an index.
- getEnum(Class<E>, String) - Method in class org.json.JSONObject
-
Get the enum value associated with a key.
- getFloat(int) - Method in class org.json.JSONArray
-
Get the float value associated with a key.
- getFloat(String) - Method in class org.json.JSONObject
-
Get the float value associated with a key.
- getForceList() - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies that tags that will be converted to arrays in this configuration
Set<String>
to parse the provided tags' values as arrays - getInt(int) - Method in class org.json.JSONArray
-
Get the int value associated with an index.
- getInt(String) - Method in class org.json.JSONObject
-
Get the int value associated with a key.
- getJSONArray(int) - Method in class org.json.JSONArray
-
Get the JSONArray associated with an index.
- getJSONArray(String) - Method in class org.json.JSONObject
-
Get the JSONArray value associated with a key.
- getJSONObject(int) - Method in class org.json.JSONArray
-
Get the JSONObject associated with an index.
- getJSONObject(String) - Method in class org.json.JSONObject
-
Get the JSONObject value associated with a key.
- getKeyNameFromMethod(Method) - Static method in class org.json.JSONObject
- getLong(int) - Method in class org.json.JSONArray
-
Get the long value associated with an index.
- getLong(String) - Method in class org.json.JSONObject
-
Get the long value associated with a key.
- getMapType() - Method in class org.json.JSONObject
-
Retrieves the type of the underlying Map in this class.
- getMaxNestingDepth() - Method in class org.json.ParserConfiguration
-
The maximum nesting depth that the parser will descend before throwing an exception when parsing the XML into JSONML.
- getNames(Object) - Static method in class org.json.JSONObject
-
Get an array of public field names from an Object.
- getNames(JSONObject) - Static method in class org.json.JSONObject
-
Get an array of field names from a JSONObject.
- getNumber(int) - Method in class org.json.JSONArray
-
Get the Number value associated with a key.
- getNumber(String) - Method in class org.json.JSONObject
-
Get the Number value associated with a key.
- getPrevious() - Method in class org.json.JSONTokener
-
Get the last character read from the input or '\0' if nothing has been read yet.
- getString(int) - Method in class org.json.JSONArray
-
Get the string associated with an index.
- getString(String) - Method in class org.json.JSONObject
-
Get the string associated with a key.
- getValue(JSONTokener, char) - Static method in class org.json.CDL
-
Get the next value.
- getXsiTypeMap() - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies that the values with attribute xsi:type will be converted to target type defined to client in this configuration
Map<String, XMLXsiTypeConverter<?>>
to parse values with attribute xsi:type="integer" as integer, xsi:type="string" as string - GT - Static variable in class org.json.XML
-
The Character
H
- has(String) - Method in class org.json.JSONObject
-
Determine if the JSONObject contains a specific key.
- hashCode() - Method in class org.json.JSONObject.Null
-
A Null object is equal to the null value and to itself.
- HTTP - Class in org.json
-
Convert an HTTP header to a JSONObject and back.
- HTTP() - Constructor for class org.json.HTTP
-
Constructs a new HTTP object.
- HTTPTokener - Class in org.json
-
The HTTPTokener extends the JSONTokener to provide additional methods for the parsing of HTTP headers.
- HTTPTokener(String) - Constructor for class org.json.HTTPTokener
-
Construct an HTTPTokener from a string.
I
- increment(String) - Method in class org.json.JSONObject
-
Increment a property of a JSONObject.
- incrementIndexes(int) - Method in class org.json.JSONTokener
-
Increments the internal indexes according to the previous character read and the character passed as the current character.
- indent(int) - Static method in class org.json.XML
-
Return a String consisting of a number of space characters specified by indent
- indent(Writer, int) - Static method in class org.json.JSONObject
- index - Variable in class org.json.JSONTokener
-
current read index of the input.
- isCloseEmptyTag() - Method in class org.json.XMLParserConfiguration
-
Checks if the parser should automatically close empty XML tags.
- isConvertNilAttributeToNull() - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies if values with attribute xsi:nil="true" should be kept as attribute(
false
), or they should be converted tonull
(true
) - isDecimalNotation(String) - Static method in class org.json.JSONObject
-
Tests if the value should be tried as a decimal.
- isDecimalNotation(String) - Static method in class org.json.XML
-
direct copy of
JSONObject.isDecimalNotation(String)
to maintain Android support. - isEmpty() - Method in class org.json.JSONArray
-
Check if JSONArray is empty.
- isEmpty() - Method in class org.json.JSONObject
-
Check if JSONObject is empty.
- isKeepStrings() - Method in class org.json.ParserConfiguration
-
When parsing the XML into JSONML, specifies if values should be kept as strings (
true
), or if they should try to be guessed into JSON values (numeric, boolean, string) - isNull(int) - Method in class org.json.JSONArray
-
Determine if the value is
null
. - isNull(String) - Method in class org.json.JSONObject
-
Determine if the value associated with the key is
null
or if there is no value. - isNumberSimilar(Number, Number) - Static method in class org.json.JSONObject
-
Compares two numbers to see if they are similar.
- isStringAllWhiteSpace(String) - Static method in class org.json.XML
- isValidMethodName(String) - Static method in class org.json.JSONObject
- iterator() - Method in class org.json.JSONArray
J
- join(String) - Method in class org.json.JSONArray
-
Make a string from the contents of this JSONArray.
- JSONArray - Class in org.json
-
A JSONArray is an ordered sequence of values.
- JSONArray() - Constructor for class org.json.JSONArray
-
Construct an empty JSONArray.
- JSONArray(int) - Constructor for class org.json.JSONArray
-
Construct a JSONArray with the specified initial capacity.
- JSONArray(Iterable<?>) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from an Iterable.
- JSONArray(Object) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from an array.
- JSONArray(String) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a source JSON text.
- JSONArray(Collection<?>) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a Collection.
- JSONArray(Collection<?>, int, JSONParserConfiguration) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a collection with recursion depth.
- JSONArray(Collection<?>, JSONParserConfiguration) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a Collection.
- JSONArray(JSONArray) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from another JSONArray.
- JSONArray(JSONTokener) - Constructor for class org.json.JSONArray
-
Construct a JSONArray from a JSONTokener.
- JSONException - Exception Class in org.json
-
The JSONException is thrown by the JSON.org classes when things are amiss.
- JSONException(String) - Constructor for exception class org.json.JSONException
-
Constructs a JSONException with an explanatory message.
- JSONException(String, Throwable) - Constructor for exception class org.json.JSONException
-
Constructs a JSONException with an explanatory message and cause.
- JSONException(Throwable) - Constructor for exception class org.json.JSONException
-
Constructs a new JSONException with the specified cause.
- JSONML - Class in org.json
-
This provides static methods to convert an XML text into a JSONArray or JSONObject, and to covert a JSONArray or JSONObject into an XML text using the JsonML transform.
- JSONML() - Constructor for class org.json.JSONML
-
Constructs a new JSONML object.
- JSONMLParserConfiguration - Class in org.json
-
Configuration object for the XML to JSONML parser.
- JSONMLParserConfiguration() - Constructor for class org.json.JSONMLParserConfiguration
-
Default parser configuration.
- JSONMLParserConfiguration(boolean, int) - Constructor for class org.json.JSONMLParserConfiguration
-
Configure the parser string processing and use the default CDATA Tag Name as "content".
- JSONObject - Class in org.json
-
A JSONObject is an unordered collection of name/value pairs.
- JSONObject() - Constructor for class org.json.JSONObject
-
Construct an empty JSONObject.
- JSONObject(int) - Constructor for class org.json.JSONObject
-
Constructor to specify an initial capacity of the internal map.
- JSONObject(Object) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from an Object using bean getters.
- JSONObject(Object, String...) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from an Object, using reflection to find the public members.
- JSONObject(Object, Set<Object>) - Constructor for class org.json.JSONObject
- JSONObject(String) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a source JSON text string.
- JSONObject(String, Locale) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a ResourceBundle.
- JSONObject(Map<?, ?>) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a Map.
- JSONObject(Map<?, ?>, int, JSONParserConfiguration) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a map with recursion depth.
- JSONObject(Map<?, ?>, JSONParserConfiguration) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a Map with custom json parse configurations.
- JSONObject(JSONObject, String...) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a subset of another JSONObject.
- JSONObject(JSONTokener) - Constructor for class org.json.JSONObject
-
Construct a JSONObject from a JSONTokener.
- JSONObject.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.
- JSONParserConfiguration - Class in org.json
-
Configuration object for the JSON parser.
- JSONParserConfiguration() - Constructor for class org.json.JSONParserConfiguration
-
Configuration with the default values.
- JSONPointer - Class in org.json
-
A JSON Pointer is a simple query language defined for JSON documents by RFC 6901.
- JSONPointer(String) - Constructor for class org.json.JSONPointer
-
Pre-parses and initializes a new
JSONPointer
instance. - JSONPointer(List<String>) - Constructor for class org.json.JSONPointer
-
Constructs a new JSONPointer instance with the provided list of reference tokens.
- JSONPointer.Builder - Class in org.json
-
This class allows the user to build a JSONPointer in steps, using exactly one segment in each step.
- JSONPointerException - Exception Class in org.json
-
The JSONPointerException is thrown by
JSONPointer
if an error occurs during evaluating a pointer. - JSONPointerException(String) - Constructor for exception class org.json.JSONPointerException
-
Constructs a new JSONPointerException with the specified error message.
- JSONPointerException(String, Throwable) - Constructor for exception class org.json.JSONPointerException
-
Constructs a new JSONPointerException with the specified error message and cause.
- JSONPropertyIgnore - Annotation Type in org.json
-
Use this annotation on a getter method to override the Bean name parser for Bean -> JSONObject mapping.
- JSONPropertyName - Annotation Type in org.json
-
Use this annotation on a getter method to override the Bean name parser for Bean -> JSONObject mapping.
- JSONString - Interface in org.json
-
The
JSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. - JSONStringer - Class in org.json
-
JSONStringer provides a quick and convenient way of producing JSON text.
- JSONStringer() - Constructor for class org.json.JSONStringer
-
Make a fresh JSONStringer.
- JSONTokener - Class in org.json
-
A JSONTokener takes a source string and extracts characters and tokens from it.
- JSONTokener(InputStream) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from an InputStream.
- JSONTokener(Reader) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from a Reader.
- JSONTokener(String) - Constructor for class org.json.JSONTokener
-
Construct a JSONTokener from a string.
- JSONWriter - Class in org.json
-
JSONWriter provides a quick and convenient way of producing JSON text.
- JSONWriter(Appendable) - Constructor for class org.json.JSONWriter
-
Make a fresh JSONWriter.
K
- KEEP_STRINGS - Static variable in class org.json.JSONMLParserConfiguration
-
Original configuration of the XML to JSONML Parser except that values are kept as strings.
- KEEP_STRINGS - Static variable in class org.json.XMLParserConfiguration
-
Original configuration of the XML Parser except that values are kept as strings.
- keepStrings - Variable in class org.json.ParserConfiguration
-
Specifies if values should be kept as strings (
true
), or if they should try to be guessed into JSON values (numeric, boolean, string) - key(String) - Method in class org.json.JSONWriter
-
Append a key.
- keys() - Method in class org.json.JSONObject
-
Get an enumeration of the keys of the JSONObject.
- keySet() - Method in class org.json.JSONObject
-
Get a set of keys of the JSONObject.
L
- length() - Method in class org.json.JSONArray
-
Get the number of elements in the JSONArray, included nulls.
- length() - Method in class org.json.JSONObject
-
Get the number of keys stored in the JSONObject.
- line - Variable in class org.json.JSONTokener
-
current line of the input.
- LT - Static variable in class org.json.XML
-
The Character '<'.
M
- map - Variable in class org.json.JSONObject
-
The map where the JSONObject's properties are kept.
- maxdepth - Static variable in class org.json.JSONWriter
- maxNestingDepth - Variable in class org.json.ParserConfiguration
-
The maximum nesting depth when parsing a document.
- mode - Variable in class org.json.JSONWriter
-
The current mode.
- more() - Method in class org.json.JSONTokener
-
Determine if the source string still contains characters that next() can consume.
- mustEscape(int) - Static method in class org.json.XML
- myArrayList - Variable in class org.json.JSONArray
-
The arrayList where the JSONArray's properties are kept.
N
- names() - Method in class org.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this JSONObject.
- next() - Method in class org.json.JSONTokener
-
Get the next character in the source string.
- next(char) - Method in class org.json.JSONTokener
-
Consume the next character, and check that it matches a specified character.
- next(int) - Method in class org.json.JSONTokener
-
Get the next n characters.
- nextCDATA() - Method in class org.json.XMLTokener
-
Get the text in the CDATA block.
- nextClean() - Method in class org.json.JSONTokener
-
Get the next char in the string, skipping whitespace.
- nextContent() - Method in class org.json.XMLTokener
-
Get the next XML outer token, trimming whitespace.
- nextEntity(char) - Method in class org.json.XMLTokener
-
Return the next entity. These entities are translated to Characters: & ' > < ".
- nextMeta() - Method in class org.json.XMLTokener
-
Returns the next XML meta token. This is used for skipping over <!...> and <?...?> structures.
- nextSimpleValue(char) - Method in class org.json.JSONTokener
- nextString(char) - Method in class org.json.JSONTokener
-
Return the characters up to the next close quote character.
- nextTo(char) - Method in class org.json.JSONTokener
-
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.JSONTokener
-
Get the text up but not including one of the specified delimiter characters or the end of line, whichever comes first.
- nextToken() - Method in class org.json.HTTPTokener
-
Get the next token or string.
- nextToken() - Method in class org.json.XMLTokener
-
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.
- nextValue() - Method in class org.json.JSONTokener
-
Get the next value.
- noSpace(String) - Static method in class org.json.XML
-
Throw an exception if the string contains whitespace.
- Null() - Constructor for class org.json.JSONObject.Null
- NULL - Static variable in class org.json.JSONObject
-
It is sometimes more convenient and less ambiguous to have a
NULL
object than to use Java'snull
value. - NULL_ATTR - Static variable in class org.json.XML
-
Null attribute name
- NUMBER_PATTERN - Static variable in class org.json.JSONObject
-
Regular Expression Pattern that matches JSON Numbers.
- numberIsFinite(Number) - Static method in class org.json.JSONObject
- numberToString(Number) - Static method in class org.json.JSONObject
-
Produce a string from a Number.
O
- object() - Method in class org.json.JSONWriter
-
Begin appending a new object.
- objectToBigDecimal(Object, BigDecimal) - Static method in class org.json.JSONObject
- objectToBigDecimal(Object, BigDecimal, boolean) - Static method in class org.json.JSONObject
- objectToBigInteger(Object, BigInteger) - Static method in class org.json.JSONObject
- opt(int) - Method in class org.json.JSONArray
-
Get the optional object value associated with an index.
- opt(String) - Method in class org.json.JSONObject
-
Get an optional value associated with a key.
- optBigDecimal(int, BigDecimal) - Method in class org.json.JSONArray
-
Get the optional BigDecimal value associated with an index.
- optBigDecimal(String, BigDecimal) - Method in class org.json.JSONObject
-
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.
- optBigInteger(int, BigInteger) - Method in class org.json.JSONArray
-
Get the optional BigInteger value associated with an index.
- optBigInteger(String, BigInteger) - Method in class org.json.JSONObject
-
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.
- optBoolean(int) - Method in class org.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(int, boolean) - Method in class org.json.JSONArray
-
Get the optional boolean value associated with an index.
- optBoolean(String) - Method in class org.json.JSONObject
-
Get an optional boolean associated with a key.
- optBoolean(String, boolean) - Method in class org.json.JSONObject
-
Get an optional boolean associated with a key.
- optBooleanObject(int) - Method in class org.json.JSONArray
-
Get the optional Boolean object associated with an index.
- optBooleanObject(int, Boolean) - Method in class org.json.JSONArray
-
Get the optional Boolean object associated with an index.
- optBooleanObject(String) - Method in class org.json.JSONObject
-
Get an optional boolean object associated with a key.
- optBooleanObject(String, Boolean) - Method in class org.json.JSONObject
-
Get an optional boolean object associated with a key.
- optDouble(int) - Method in class org.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(int, double) - Method in class org.json.JSONArray
-
Get the optional double value associated with an index.
- optDouble(String) - Method in class 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 class 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.
- optDoubleObject(int) - Method in class org.json.JSONArray
-
Get the optional Double object associated with an index.
- optDoubleObject(int, Double) - Method in class org.json.JSONArray
-
Get the optional double value associated with an index.
- optDoubleObject(String) - Method in class org.json.JSONObject
-
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.
- optDoubleObject(String, Double) - Method in class org.json.JSONObject
-
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.
- optEnum(Class<E>, int) - Method in class org.json.JSONArray
-
Get the enum value associated with a key.
- optEnum(Class<E>, int, E) - Method in class org.json.JSONArray
-
Get the enum value associated with a key.
- optEnum(Class<E>, String) - Method in class org.json.JSONObject
-
Get the enum value associated with a key.
- optEnum(Class<E>, String, E) - Method in class org.json.JSONObject
-
Get the enum value associated with a key.
- optFloat(int) - Method in class org.json.JSONArray
-
Get the optional float value associated with an index.
- optFloat(int, float) - Method in class org.json.JSONArray
-
Get the optional float value associated with an index.
- optFloat(String) - Method in class org.json.JSONObject
-
Get the optional float value associated with an index.
- optFloat(String, float) - Method in class org.json.JSONObject
-
Get the optional float value associated with an index.
- optFloatObject(int) - Method in class org.json.JSONArray
-
Get the optional Float object associated with an index.
- optFloatObject(int, Float) - Method in class org.json.JSONArray
-
Get the optional Float object associated with an index.
- optFloatObject(String) - Method in class org.json.JSONObject
-
Get the optional Float object associated with an index.
- optFloatObject(String, Float) - Method in class org.json.JSONObject
-
Get the optional Float object associated with an index.
- optInt(int) - Method in class org.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(int, int) - Method in class org.json.JSONArray
-
Get the optional int value associated with an index.
- optInt(String) - Method in class 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 class 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.
- optIntegerObject(int) - Method in class org.json.JSONArray
-
Get the optional Integer object associated with an index.
- optIntegerObject(int, Integer) - Method in class org.json.JSONArray
-
Get the optional Integer object associated with an index.
- optIntegerObject(String) - Method in class org.json.JSONObject
-
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.
- optIntegerObject(String, Integer) - Method in class org.json.JSONObject
-
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.
- optJSONArray(int) - Method in class org.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(int, JSONArray) - Method in class org.json.JSONArray
-
Get the optional JSONArray associated with an index.
- optJSONArray(String) - Method in class org.json.JSONObject
-
Get an optional JSONArray associated with a key.
- optJSONArray(String, JSONArray) - Method in class org.json.JSONObject
-
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.
- optJSONObject(int) - Method in class org.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(int, JSONObject) - Method in class org.json.JSONArray
-
Get the optional JSONObject associated with an index.
- optJSONObject(String) - Method in class org.json.JSONObject
-
Get an optional JSONObject associated with a key.
- optJSONObject(String, JSONObject) - Method in class org.json.JSONObject
-
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.
- optLong(int) - Method in class org.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(int, long) - Method in class org.json.JSONArray
-
Get the optional long value associated with an index.
- optLong(String) - Method in class 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 class 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.
- optLongObject(int) - Method in class org.json.JSONArray
-
Get the optional Long object associated with an index.
- optLongObject(int, Long) - Method in class org.json.JSONArray
-
Get the optional Long object associated with an index.
- optLongObject(String) - Method in class org.json.JSONObject
-
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.
- optLongObject(String, Long) - Method in class org.json.JSONObject
-
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.
- optNumber(int) - Method in class org.json.JSONArray
-
Get an optional
Number
value associated with a key, ornull
if there is no such key or if the value is not a number. - optNumber(int, Number) - Method in class org.json.JSONArray
-
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. - optNumber(String) - Method in class org.json.JSONObject
-
Get an optional
Number
value associated with a key, ornull
if there is no such key or if the value is not a number. - optNumber(String, Number) - Method in class org.json.JSONObject
-
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. - optQuery(String) - Method in class org.json.JSONArray
-
Queries and returns a value from this object using
jsonPointer
, or returns null if the query fails due to a missing key. - optQuery(String) - Method in class org.json.JSONObject
-
Queries and returns a value from this object using
jsonPointer
, or returns null if the query fails due to a missing key. - optQuery(JSONPointer) - Method in class org.json.JSONArray
-
Queries and returns a value from this object using
jsonPointer
, or returns null if the query fails due to a missing key. - optQuery(JSONPointer) - Method in class org.json.JSONObject
-
Queries and returns a value from this object using
jsonPointer
, or returns null if the query fails due to a missing key. - optString(int) - Method in class org.json.JSONArray
-
Get the optional string value associated with an index.
- optString(int, String) - Method in class org.json.JSONArray
-
Get the optional string associated with an index.
- optString(String) - Method in class org.json.JSONObject
-
Get an optional string associated with a key.
- optString(String, String) - Method in class org.json.JSONObject
-
Get an optional string associated with a key.
- org.json - package org.json
- ORIGINAL - Static variable in class org.json.JSONMLParserConfiguration
-
Original Configuration of the XML to JSONML Parser.
- ORIGINAL - Static variable in class org.json.XMLParserConfiguration
-
Original Configuration of the XML Parser.
P
- parse(XMLTokener, boolean, JSONArray, boolean, int) - Static method in class org.json.JSONML
-
Parse XML values and store them in a JSONArray.
- parse(XMLTokener, boolean, JSONArray, JSONMLParserConfiguration, int) - Static method in class org.json.JSONML
-
Parse XML values and store them in a JSONArray.
- parse(XMLTokener, JSONObject, String, XMLParserConfiguration, int) - Static method in class org.json.XML
-
Scan the content following the named tag, attaching it to the context.
- ParserConfiguration - Class in org.json
-
Configuration base object for parsers.
- ParserConfiguration() - Constructor for class org.json.ParserConfiguration
-
Constructs a new ParserConfiguration with default settings.
- ParserConfiguration(boolean, int) - Constructor for class org.json.ParserConfiguration
-
Constructs a new ParserConfiguration with the specified settings.
- pop(char) - Method in class org.json.JSONWriter
-
Pop an array or object scope.
- populateMap(Object) - Method in class org.json.JSONObject
-
Populates the internal map of the JSONObject with the bean properties.
- populateMap(Object, Set<Object>) - Method in class org.json.JSONObject
- previous - Variable in class org.json.JSONTokener
-
previous character read from the input.
- Property - Class in org.json
-
Converts a Property file data into JSONObject and back.
- Property() - Constructor for class org.json.Property
-
Constructs a new Property object.
- push(JSONObject) - Method in class org.json.JSONWriter
-
Push an array or object scope.
- put(boolean) - Method in class org.json.JSONArray
-
Append a boolean value.
- put(double) - Method in class org.json.JSONArray
-
Append a double value.
- put(float) - Method in class org.json.JSONArray
-
Append a float value.
- put(int) - Method in class org.json.JSONArray
-
Append an int value.
- put(int, boolean) - Method in class org.json.JSONArray
-
Put or replace a boolean value in the JSONArray.
- put(int, double) - Method in class org.json.JSONArray
-
Put or replace a double value.
- put(int, float) - Method in class org.json.JSONArray
-
Put or replace a float value.
- put(int, int) - Method in class org.json.JSONArray
-
Put or replace an int value.
- put(int, long) - Method in class org.json.JSONArray
-
Put or replace a long value.
- put(int, Object) - Method in class org.json.JSONArray
-
Put or replace an object value in the JSONArray.
- put(int, Collection<?>) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- put(int, Map<?, ?>) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.
- put(int, Map<?, ?>, JSONParserConfiguration) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject that is produced from a Map.
- put(long) - Method in class org.json.JSONArray
-
Append an long value.
- put(Object) - Method in class org.json.JSONArray
-
Append an object value.
- put(String, boolean) - Method in class org.json.JSONObject
-
Put a key/boolean pair in the JSONObject.
- put(String, double) - Method in class org.json.JSONObject
-
Put a key/double pair in the JSONObject.
- put(String, float) - Method in class org.json.JSONObject
-
Put a key/float pair in the JSONObject.
- put(String, int) - Method in class org.json.JSONObject
-
Put a key/int pair in the JSONObject.
- put(String, long) - Method in class org.json.JSONObject
-
Put a key/long pair in the JSONObject.
- put(String, Object) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject.
- put(String, Collection<?>) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONArray which is produced from a Collection.
- put(String, Map<?, ?>) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
- put(Collection<?>) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONArray which is produced from a Collection.
- put(Map<?, ?>) - Method in class org.json.JSONArray
-
Put a value in the JSONArray, where the value will be a JSONObject which is produced from a Map.
- putAll(Iterable<?>) - Method in class org.json.JSONArray
-
Put an Iterable's elements in to the JSONArray.
- putAll(Object) - Method in class org.json.JSONArray
-
Put an array's elements in to the JSONArray.
- putAll(Collection<?>) - Method in class org.json.JSONArray
-
Put a collection's elements in to the JSONArray.
- putAll(JSONArray) - Method in class org.json.JSONArray
-
Put a JSONArray's elements in to the JSONArray.
- putOnce(String, Object) - Method in class 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.
- putOpt(String, Object) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject, but only if the key and the value are both non-null.
Q
- query(String) - Method in class org.json.JSONArray
-
Creates a JSONPointer using an initialization string and tries to match it to an item within this JSONArray.
- query(String) - Method in class org.json.JSONObject
-
Creates a JSONPointer using an initialization string and tries to match it to an item within this JSONObject.
- query(JSONPointer) - Method in class org.json.JSONArray
-
Uses a user initialized JSONPointer and tries to match it to an item within this JSONArray.
- query(JSONPointer) - Method in class org.json.JSONObject
-
Uses a user initialized JSONPointer and tries to match it to an item within this JSONObject.
- queryFrom(Object) - Method in class org.json.JSONPointer
-
Evaluates this JSON Pointer on the given
document
. - QUEST - Static variable in class org.json.XML
-
The Character '?'.
- QUOT - Static variable in class org.json.XML
-
The Character '"'.
- quote(String) - Static method in class org.json.JSONObject
-
Produce a string in double quotes with backslash sequences in all the right places.
- quote(String, Writer) - Static method in class org.json.JSONObject
-
Quotes a string and appends the result to a given Writer.
R
- readByIndexToken(Object, String) - Static method in class org.json.JSONPointer
-
Matches a JSONArray element by ordinal position
- reader - Variable in class org.json.JSONTokener
-
Reader for the input.
- recursivelyDefinedObjectException(String) - Static method in class org.json.JSONObject
-
Create a new JSONException in a common format for recursive object definition.
- refTokens - Variable in class org.json.JSONPointer.Builder
- refTokens - Variable in class org.json.JSONPointer
- remove(int) - Method in class org.json.JSONArray
-
Remove an index and close the hole.
- remove(String) - Method in class org.json.JSONObject
-
Remove a name and its value, if present.
- removeEmpty(JSONObject, XMLParserConfiguration) - Static method in class org.json.XML
-
This method removes any JSON entry which has the key set by XMLParserConfiguration.cDataTagName and contains whitespace as this is caused by whitespace between tags.
- removeLeadingZerosOfNumber(String) - Static method in class org.json.JSONObject
-
For a prospective number, remove the leading zeros
- rowToJSONArray(JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONArray of strings from a row of comma delimited values.
- rowToJSONArray(JSONTokener, char) - Static method in class org.json.CDL
-
Produce a JSONArray of strings from a row of comma delimited values.
- rowToJSONObject(JSONArray, JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.
- rowToJSONObject(JSONArray, JSONTokener, char) - Static method in class org.json.CDL
-
Produce a JSONObject from a row of comma delimited text, using a parallel JSONArray of strings to provides the names of the elements.
- rowToString(JSONArray) - Static method in class org.json.CDL
-
Produce a comma delimited text row from a JSONArray.
- rowToString(JSONArray, char) - Static method in class org.json.CDL
-
Produce a comma delimited text row from a JSONArray.
S
- serialVersionUID - Static variable in exception class org.json.JSONException
-
Serialization ID
- serialVersionUID - Static variable in exception class org.json.JSONPointerException
- shouldTrimWhiteSpace - Variable in class org.json.XMLParserConfiguration
-
Flag to indicate whether white space should be trimmed when parsing XML.
- shouldTrimWhiteSpace() - Method in class org.json.XMLParserConfiguration
-
Checks if the parser should trim white spaces from XML content.
- similar(Object) - Method in class org.json.JSONArray
-
Determine if two JSONArrays are similar.
- similar(Object) - Method in class org.json.JSONObject
-
Determine if two JSONObjects are similar.
- skipPast(String) - Method in class org.json.XMLTokener
-
Skip characters until past the requested string.
- skipTo(char) - Method in class org.json.JSONTokener
-
Skip characters until the next character is the requested character.
- SLASH - Static variable in class org.json.XML
-
The Character '/'.
- stack - Variable in class org.json.JSONWriter
-
The object/array stack.
- stringToNumber(String) - Static method in class org.json.JSONObject
-
Converts a string to a number using the narrowest possible type.
- stringToNumber(String) - Static method in class org.json.XML
-
direct copy of
JSONObject.stringToNumber(String)
to maintain Android support. - stringToValue(String) - Static method in class org.json.JSONObject
-
Try to convert a string into a number, boolean, or null.
- stringToValue(String) - Static method in class org.json.XML
-
This method is the same as
JSONObject.stringToValue(String)
. - stringToValue(String, XMLXsiTypeConverter<?>) - Static method in class org.json.XML
-
This method tries to convert the given string value to the target object
- syntaxError(String) - Method in class org.json.JSONTokener
-
Make a JSONException to signal a syntax error.
- syntaxError(String, Throwable) - Method in class org.json.JSONTokener
-
Make a JSONException to signal a syntax error.
T
- testValidity(Object) - Static method in class org.json.JSONObject
-
Throw an exception if the object is a NaN or infinite number.
- toJSONArray(String) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
- toJSONArray(String) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONArray(String, boolean) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONArray(String, char) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
- toJSONArray(String, JSONMLParserConfiguration) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONArray(JSONArray) - Method in class org.json.JSONObject
-
Produce a JSONArray containing the values of the members of this JSONObject.
- toJSONArray(JSONArray, String) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
- toJSONArray(JSONArray, String, char) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
- toJSONArray(JSONArray, JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
- toJSONArray(JSONArray, JSONTokener, char) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string using a supplied JSONArray as the source of element names.
- toJSONArray(JSONTokener) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
- toJSONArray(JSONTokener, char) - Static method in class org.json.CDL
-
Produce a JSONArray of JSONObjects from a comma delimited text string, using the first row as a source of names.
- toJSONArray(XMLTokener) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONArray(XMLTokener, boolean) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONArray(XMLTokener, JSONMLParserConfiguration) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
- toJSONObject(Reader) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML into a JSONObject.
- toJSONObject(Reader, boolean) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML into a JSONObject.
- toJSONObject(Reader, XMLParserConfiguration) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML into a JSONObject.
- toJSONObject(String) - Static method in class org.json.Cookie
-
Convert a cookie specification string into a JSONObject.
- toJSONObject(String) - Static method in class org.json.CookieList
-
Convert a cookie list into a JSONObject.
- toJSONObject(String) - Static method in class org.json.HTTP
-
Convert an HTTP header string into a JSONObject.
- toJSONObject(String) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONObject(String) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
- toJSONObject(String, boolean) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONObject(String, boolean) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
- toJSONObject(String, JSONMLParserConfiguration) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONObject(String, XMLParserConfiguration) - Static method in class org.json.XML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.
- toJSONObject(Properties) - Static method in class org.json.Property
-
Converts a property file object into a JSONObject.
- toJSONObject(JSONArray) - Method in class org.json.JSONArray
-
Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.
- toJSONObject(XMLTokener) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONObject(XMLTokener, boolean) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONObject(XMLTokener, JSONMLParserConfiguration) - Static method in class org.json.JSONML
-
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.
- toJSONString() - Method in interface org.json.JSONString
-
The
toJSONString
method allows a class to produce its own JSON serialization. - toList() - Method in class org.json.JSONArray
-
Returns a java.util.List containing all of the elements in this array.
- toMap() - Method in class org.json.JSONObject
-
Returns a java.util.Map containing all of the entries in this object.
- top - Variable in class org.json.JSONWriter
-
The stack top index.
- toProperties(JSONObject) - Static method in class org.json.Property
-
Converts the JSONObject into a property file object.
- toString() - Method in class org.json.JSONArray
-
Make a JSON text of this JSONArray.
- toString() - Method in class org.json.JSONObject.Null
-
Get the "null" string value.
- toString() - Method in class org.json.JSONObject
-
Make a JSON text of this JSONObject.
- toString() - Method in class org.json.JSONPointer
-
Returns a string representing the JSONPointer path value using string representation
- toString() - Method in class org.json.JSONStringer
-
Return the JSON text.
- toString() - Method in class org.json.JSONTokener
-
Make a printable string of this JSONTokener.
- toString(int) - Method in class org.json.JSONArray
-
Make a pretty-printed JSON text of this JSONArray.
- toString(int) - Method in class org.json.JSONObject
-
Make a pretty-printed JSON text of this JSONObject.
- toString(Object) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string.
- toString(Object, int) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, pretty printed element-normal XML string.
- toString(Object, String) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string.
- toString(Object, String, int) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, pretty printed element-normal XML string.
- toString(Object, String, XMLParserConfiguration) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string.
- toString(Object, String, XMLParserConfiguration, int) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, pretty printed element-normal XML string.
- toString(Object, String, XMLParserConfiguration, int, int) - Static method in class org.json.XML
-
Convert a JSONObject into a well-formed, element-normal XML string, either pretty print or single-lined depending on indent factor.
- toString(JSONArray) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects.
- toString(JSONArray) - Static method in class org.json.JSONML
-
Reverse the JSONML transformation, making an XML text from a JSONArray.
- toString(JSONArray, char) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects.
- toString(JSONArray, JSONArray) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
- toString(JSONArray, JSONArray, char) - Static method in class org.json.CDL
-
Produce a comma delimited text from a JSONArray of JSONObjects using a provided list of names.
- toString(JSONObject) - Static method in class org.json.Cookie
-
Convert a JSONObject into a cookie specification string.
- toString(JSONObject) - Static method in class org.json.CookieList
-
Convert a JSONObject into a cookie list.
- toString(JSONObject) - Static method in class org.json.HTTP
-
Convert a JSONObject into an HTTP header.
- toString(JSONObject) - Static method in class org.json.JSONML
-
Reverse the JSONML transformation, making an XML text from a JSONObject.
- toURIFragment() - Method in class org.json.JSONPointer
-
Returns a string representing the JSONPointer path value using URI fragment identifier representation
- TYPE_ATTR - Static variable in class org.json.XML
-
Represents the XML attribute name for specifying type information.
U
- UNDEFINED_MAXIMUM_NESTING_DEPTH - Static variable in class org.json.ParserConfiguration
-
Used to indicate there's no defined limit to the maximum nesting depth when parsing a document.
- unescape(String) - Static method in class org.json.Cookie
-
Convert
%
hh sequences to single characters, and convert plus to space. - unescape(String) - Static method in class org.json.JSONPointer
- unescape(String) - Static method in class org.json.XML
-
Removes XML escapes from the string.
- unescapeEntity(String) - Static method in class org.json.XMLTokener
-
Unescape an XML entity encoding;
- usePrevious - Variable in class org.json.JSONTokener
-
flag to indicate that a previous character was requested.
V
- value() - Element in annotation type org.json.JSONPropertyName
-
The value of the JSON property.
- value(boolean) - Method in class org.json.JSONWriter
-
Append either the value
true
or the valuefalse
. - value(double) - Method in class org.json.JSONWriter
-
Append a double value.
- value(long) - Method in class org.json.JSONWriter
-
Append a long value.
- value(Object) - Method in class org.json.JSONWriter
-
Append an object value.
- valueToString(Object) - Static method in class org.json.JSONObject
-
Make a JSON text of an Object value.
- valueToString(Object) - Static method in class org.json.JSONWriter
-
Make a JSON text of an Object value.
W
- withcDataTagName(String) - Method in class org.json.XMLParserConfiguration
-
The name of the key in a JSON Object that indicates a CDATA section.
- withCloseEmptyTag(boolean) - Method in class org.json.XMLParserConfiguration
-
To enable explicit end tag with empty value.
- withConvertNilAttributeToNull(boolean) - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies if values with attribute xsi:nil="true" should be kept as attribute(
false
), or they should be converted tonull
(true
) - withForceList(Set<String>) - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies that tags that will be converted to arrays in this configuration
Set<String>
to parse the provided tags' values as arrays - withKeepStrings(boolean) - Method in class org.json.JSONMLParserConfiguration
- withKeepStrings(boolean) - Method in class org.json.ParserConfiguration
-
When parsing the XML into JSONML, specifies if values should be kept as strings (
true
), or if they should try to be guessed into JSON values (numeric, boolean, string) - withKeepStrings(boolean) - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies if values should be kept as strings (
true
), or if they should try to be guessed into JSON values (numeric, boolean, string) - withMaxNestingDepth(int) - Method in class org.json.JSONMLParserConfiguration
- withMaxNestingDepth(int) - Method in class org.json.JSONParserConfiguration
- withMaxNestingDepth(int) - Method in class org.json.ParserConfiguration
-
Defines the maximum nesting depth that the parser will descend before throwing an exception when parsing the XML into JSONML.
- withMaxNestingDepth(int) - Method in class org.json.XMLParserConfiguration
-
Defines the maximum nesting depth that the parser will descend before throwing an exception when parsing the XML into JSON.
- withShouldTrimWhitespace(boolean) - Method in class org.json.XMLParserConfiguration
-
Sets whether whitespace should be trimmed inside of tags.
- withXsiTypeMap(Map<String, XMLXsiTypeConverter<?>>) - Method in class org.json.XMLParserConfiguration
-
When parsing the XML into JSON, specifies that the values with attribute xsi:type will be converted to target type defined to client in this configuration
Map<String, XMLXsiTypeConverter<?>>
to parse values with attribute xsi:type="integer" as integer, xsi:type="string" as string - wrap(Object) - Static method in class org.json.JSONObject
-
Wrap an object, if necessary.
- wrap(Object, int, JSONParserConfiguration) - Static method in class org.json.JSONObject
-
Wrap an object, if necessary.
- wrap(Object, Set<Object>) - Static method in class org.json.JSONObject
- wrap(Object, Set<Object>, int, JSONParserConfiguration) - Static method in class org.json.JSONObject
- write(Writer) - Method in class org.json.JSONArray
-
Write the contents of the JSONArray as JSON text to a writer.
- write(Writer) - Method in class org.json.JSONObject
-
Write the contents of the JSONObject as JSON text to a writer.
- write(Writer, int, int) - Method in class org.json.JSONArray
-
Write the contents of the JSONArray as JSON text to a writer.
- write(Writer, int, int) - Method in class org.json.JSONObject
-
Write the contents of the JSONObject as JSON text to a writer.
- writer - Variable in class org.json.JSONWriter
-
The writer that will receive the output.
- writeValue(Writer, Object, int, int) - Static method in class org.json.JSONObject
- wrongValueFormatException(int, String, Object, Throwable) - Static method in class org.json.JSONArray
-
Create a new JSONException in a common format for incorrect conversions.
- wrongValueFormatException(String, String, Object, Throwable) - Static method in class org.json.JSONObject
-
Create a new JSONException in a common format for incorrect conversions.
X
- XML - Class in org.json
-
This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text.
- XML() - Constructor for class org.json.XML
-
Constructs a new XML object.
- XMLParserConfiguration - Class in org.json
-
Configuration object for the XML parser.
- XMLParserConfiguration() - Constructor for class org.json.XMLParserConfiguration
-
Default parser configuration.
- XMLParserConfiguration(boolean) - Constructor for class org.json.XMLParserConfiguration
-
Deprecated.This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.
- XMLParserConfiguration(boolean, String) - Constructor for class org.json.XMLParserConfiguration
-
Deprecated.This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.
- XMLParserConfiguration(boolean, String, boolean) - Constructor for class org.json.XMLParserConfiguration
-
Deprecated.This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed or marked private in a future release.
- XMLParserConfiguration(boolean, String, boolean, Map<String, XMLXsiTypeConverter<?>>, Set<String>, int, boolean) - Constructor for class org.json.XMLParserConfiguration
-
Configure the parser to use custom settings.
- XMLParserConfiguration(String) - Constructor for class org.json.XMLParserConfiguration
-
Deprecated.This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.
- XMLTokener - Class in org.json
-
The XMLTokener extends the JSONTokener to provide additional methods for the parsing of XML texts.
- XMLTokener(Reader) - Constructor for class org.json.XMLTokener
-
Construct an XMLTokener from a Reader.
- XMLTokener(Reader, XMLParserConfiguration) - Constructor for class org.json.XMLTokener
-
Construct an XMLTokener from a Reader and an XMLParserConfiguration.
- XMLTokener(String) - Constructor for class org.json.XMLTokener
-
Construct an XMLTokener from a string.
- XMLXsiTypeConverter<T> - Interface in org.json
-
Type conversion configuration interface to be used with xsi:type attributes.
- xsiTypeMap - Variable in class org.json.XMLParserConfiguration
-
This will allow type conversion for values in XML if xsi:type attribute is defined
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form