- names() - Method in class org.json.JSONObject
-
Produce a JSONArray containing the names of the elements of this
JSONObject.
- newArrayWriter(StructureWriter) - Method in class org.json.write.CompactWriterFactory
-
Returns a StructureWriter
for writing compact JSON Array structures.
- newArrayWriter(StructureWriter) - Method in class org.json.write.PrettyWriterFactory
-
Returns a StructureWriter
for writing pretty-printed JSON Array
structures.
- newArrayWriter(StructureWriter) - Method in interface org.json.write.StructureWriterFactory
-
Returns a StructureWriter
for writing JSON Array structures.
- newObjectWriter(StructureWriter) - Method in class org.json.write.CompactWriterFactory
-
Returns a StructureWriter
for writing compact JSON Object structures.
- newObjectWriter(StructureWriter) - Method in class org.json.write.PrettyWriterFactory
-
Returns a StructureWriter
for writing pretty-printed JSON Object
structures.
- newObjectWriter(StructureWriter) - Method in interface org.json.write.StructureWriterFactory
-
Returns a StructureWriter
for writing JSON Object structures.
- next() - Method in class org.json.Scanner
-
Get the next character in the source stream.
- next(char) - Method in class org.json.Scanner
-
Consume the next character, and check that it matches a specified
character.
- next(int) - Method in class org.json.Scanner
-
Get the next n characters.
- nextBigDecimalValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextBigDecimalValue() - Method in class org.json.stream.JSONStreamReader
-
- nextBigIntegerValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextBigIntegerValue() - Method in class org.json.stream.JSONStreamReader
-
- nextBooleanValue() - Method in class org.json.stream.JSONStreamReader
-
- nextCDATA() - Method in class org.json.XMLTokener
-
Get the text in the CDATA block.
- nextClean() - Method in class org.json.JSONStrictTokener
-
Get the next char in the stream, skipping insignificant whitespace.
- 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.
- nextDoubleValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextDoubleValue() - Method in class org.json.stream.JSONStreamReader
-
- nextEntity(char) - Method in class org.json.XMLTokener
-
Return the next entity.
- nextIntValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextIntValue() - Method in class org.json.stream.JSONStreamReader
-
- nextJSONArray() - Method in class org.json.JSONStrictTokener
-
Parse a JSON array strictly according to the JSON specification.
- nextJSONObject() - Method in class org.json.JSONStrictTokener
-
Parse a JSON object strictly according to the JSON specification.
- nextKey() - Method in class org.json.JSONStrictTokener
-
Get the next key.
- nextKey() - Method in class org.json.JSONTokener
-
Get the next key.
- nextKey() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextKey() - Method in class org.json.stream.JSONStreamReader
-
- nextLongValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextLongValue() - Method in class org.json.stream.JSONStreamReader
-
- nextMeta() - Method in class org.json.XMLTokener
-
Returns the next XML meta token.
- nextNullValue() - Method in class org.json.stream.JSONStreamReader
-
- nextNumber() - Method in class org.json.JSONStrictTokener
-
Parse a number strictly according to the JSON specification.
- nextNumber(Appendable) - Method in class org.json.stream.JSONLexer
-
Parse a number strictly according to the JSON specification.
- nextNumber(Appendable, int, int) - Method in class org.json.stream.JSONLexer
-
Parse a number strictly according to the JSON specification.
- nextNumberValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextNumberValue() - Method in class org.json.stream.JSONStreamReader
-
- nextState() - Method in class org.json.stream.JSONStreamReader
-
Advance the parser onto the next state in the source stream, and
return a
JSONStreamReader.ParseState
representing the state that was encountered.
- nextString(char) - Method in class org.json.JSONStrictTokener
-
Return the characters up to the next close quote character.
- nextString(char) - Method in class org.json.JSONTokener
-
Return the characters up to the next close quote character.
- nextString(T) - Method in class org.json.stream.JSONLexer
-
Return the characters up to the next close quote character.
- nextString(T, long) - Method in class org.json.stream.JSONLexer
-
Return the characters up to the next close quote character.
- nextStringValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextStringValue() - Method in class org.json.stream.JSONStreamReader
-
- nextTo(char) - Method in class org.json.Scanner
-
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.Scanner
-
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.
- nextTokenType() - Method in class org.json.JSONStrictTokener
-
Get the type of the next token in the stream, skipping whitespace.
- nextTokenType() - Method in class org.json.JSONTokener
-
Get the type of the next token in the stream, skipping whitespace.
- nextTokenType() - Method in class org.json.stream.JSONLexer
-
Get the type of the next token in the stream, skipping whitespace.
- nextValue() - Method in class org.json.JSONStrictTokener
-
Get the next value.
- nextValue() - Method in class org.json.JSONTokener
-
Get the next value.
- nextValue() - Method in class org.json.stream.JSONLimitStreamReader
-
- nextValue() - Method in class org.json.stream.JSONStreamReader
-
- noSpace(String) - Static method in class org.json.XML
-
Throw an exception if the string contains whitespace.
- 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's null
value.
- NullStructureWriter - Class in org.json.write
-
Null structure writer for only allowing JSON Object or JSON Array as a
root value.
- nullValue() - Method in class org.json.JSONWriter
-
Append a null
value.
- nullValue() - Method in class org.json.stream.CollectionCollector
-
- nullValue() - Method in class org.json.stream.JSONCollector
-
Provide a null value for circumstances where JSON null is the complete
result of a JSON parse.
- nullValue() - Method in interface org.json.stream.StructureCollector
-
Provide a null value for circumstances where JSON null is the complete
result of a JSON parse.
- nullValue(Appendable) - Method in class org.json.write.NullStructureWriter
-
Throws a JSONException
to indicate this writer can't write
a value.
- nullValue(Appendable) - Method in class org.json.write.SimpleStructureWriter
-
Write a JSON null
value to the given Appendable
.
- nullValue(Appendable) - Method in interface org.json.write.StructureWriter
-
Write a JSON null
value to the given Appendable
.
- numberToString(Number) - Static method in class org.json.JSONObject
-
Produce a string from a Number.