- parseJSONArray(Reader) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONArray from a Reader.
- parseJSONArray(InputStream, Charset) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONArray from an InputStream and supplied Charset.
- parseJSONArray(String) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONArray from a string.
- parseJSONObject(Reader) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONObject from a Reader.
- parseJSONObject(InputStream, Charset) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONObject from an InputStream and supplied Charset.
- parseJSONObject(String) - Static method in class org.json.JSONStrictTokener
-
Construct a JSONObject from a string.
- parseJSONValue(Reader) - Static method in class org.json.JSONStrictTokener
-
Construct a JSON value from a Reader.
- parseJSONValue(InputStream, Charset) - Static method in class org.json.JSONStrictTokener
-
Construct a JSON value from an InputStream and supplied Charset.
- parseJSONValue(String) - Static method in class org.json.JSONStrictTokener
-
Construct a JSON value from a string.
- ParsePosition - Class in org.json
-
Represents location information for the current location of the
Scanner
.
- ParsePosition(long, long, long, char) - Constructor for class org.json.ParsePosition
-
Create a new ParsePosition with the given location information.
- parsePosition() - Method in class org.json.Scanner
-
Get an object representing the current parse position.
- parsePosition() - Method in class org.json.stream.JSONLexer
-
Indicates the current position of the scanner.
- peek() - Method in class org.json.util.ALStack
-
Returns the most recent element on the stack without removing it.
- pooledKey(String) - Method in class org.json.JSONTokener
-
Add the given key to the key pool, if necessary, and return the
canonical key.
- pop() - Method in class org.json.util.ALStack
-
Pop the most recent element off the stack.
- PrettyWriterFactory - Class in org.json.write
-
Factory class for creating StructureWriter
s for pretty-print
JSON output.
- PrettyWriterFactory(int) - Constructor for class org.json.write.PrettyWriterFactory
-
Create a new factory for pretty-printing with the given indent factor.
- PrettyWriterFactory(int, int) - Constructor for class org.json.write.PrettyWriterFactory
-
Create a new factory for pretty-printing with the given indent factor
and initial indentation.
- Property - Class in org.json
-
Converts a Property file data into JSONObject and back.
- Property() - Constructor for class org.json.Property
-
- push(E) - Method in class org.json.util.ALStack
-
Push an element onto the stack.
- put(boolean) - Method in class org.json.JSONArray
-
Append a boolean value.
- 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(double) - Method in class org.json.JSONArray
-
Append a double value.
- put(int) - Method in class org.json.JSONArray
-
Append an int value.
- put(long) - Method in class org.json.JSONArray
-
Append an long value.
- 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.
- put(Object) - Method in class org.json.JSONArray
-
Append an object value.
- put(int, boolean) - Method in class org.json.JSONArray
-
Put or replace a boolean 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, double) - Method in class org.json.JSONArray
-
Put or replace a double 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, 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, Object) - Method in class org.json.JSONArray
-
Put or replace an object value in the JSONArray.
- put(String, boolean) - Method in class org.json.JSONObject
-
Put a key/boolean 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, double) - Method in class org.json.JSONObject
-
Put a key/double 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, 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(String, Object) - Method in class org.json.JSONObject
-
Put a key/value pair in the JSONObject.
- 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.