JSONObject |
JSONObject.accumulate(String key,
Object additionalValue) |
Add a element to a JSONArray in a element.
|
JSONObject |
JSONObject.append(String key,
Object value) |
appends to an existing array
|
Object |
JSONArray.get(int index) |
get the element at the index
|
Object |
JSONObject.get(String key) |
get and element by key as its native object
|
BigDecimal |
JSONArray.getBigDecimal(int index) |
get a BigDecimal at a specified index
|
BigDecimal |
JSONObject.getBigDecimal(String key) |
get an element property as a BigDecimal
|
BigInteger |
JSONArray.getBigInteger(int index) |
get a BigInteger at a specified index
|
BigInteger |
JSONObject.getBigInteger(String key) |
get an element property as a BigInteger
|
boolean |
JSONArray.getBoolean(int index) |
get a boolean at a specified index
|
boolean |
JSONObject.getBoolean(String key) |
gets a boolean value at a particular key
|
double |
JSONArray.getDouble(int index) |
get a Double at a specified index
|
double |
JSONObject.getDouble(String key) |
get the value as a double
|
<T extends Enum<T>> T |
JSONArray.getEnum(Class<T> enumClass,
int index) |
get a enum value based on name from a specific index
|
<T extends Enum<T>> T |
JSONObject.getEnum(Class<T> enumClass,
String key) |
get element as a enum value
|
float |
JSONArray.getFloat(int index) |
get a Float at a specified index
|
float |
JSONObject.getFloat(String key) |
get the value as a float
|
int |
JSONArray.getInt(int index) |
get a int at a specified index
|
int |
JSONObject.getInt(String key) |
get an element property as a int
|
JSONArray |
JSONArray.getJSONArray(int index) |
get a JSONArray at a specified index
|
JSONArray |
JSONObject.getJSONArray(String key) |
get the element as a JSONArray
|
JSONObject |
JSONArray.getJSONObject(int index) |
get a JSONObject at a specified index
|
JSONObject |
JSONObject.getJSONObject(String key) |
get the element as a JSONObject
|
long |
JSONArray.getLong(int index) |
get a long at a specified index
|
long |
JSONObject.getLong(String key) |
get the value as a long
|
Number |
JSONArray.getNumber(int index) |
get a Number at a specified index
|
Number |
JSONObject.getNumber(String key) |
get an element property as a Number
|
String |
JSONArray.getString(int index) |
get a String at a specified index
|
String |
JSONObject.getString(String key) |
get a element property as a string
|
JSONObject |
JSONObject.increment(String key) |
increments a numeric value by 1, or creates it with a value of 1 if
it does not exist.
|
String |
JSONArray.join(String token) |
return the array as a string delimited by a specific token
|
JsonEngine.Object |
JsonEngine.newEngineObject(String string) |
|
JsonEngine.Array |
JsonEngine.newJsonArray(String jsonString) |
|
static String |
JSONObject.numberToString(Number number) |
Convert a number to a string
|
JSONArray |
JSONArray.put(double num) |
add a double to the array
|
JSONArray |
JSONArray.put(float num) |
add a float to the array
|
JSONArray |
JSONArray.put(int index,
boolean bool) |
put a boolean at a specific index
|
JSONArray |
JSONArray.put(int index,
double number) |
put a double at a specific instance
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
float number) |
put a float at a specific instance
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
int number) |
put a int at a specific instance
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
long number) |
put a long at a specific instance
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
Object object) |
put a object at a specific instance
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
Collection collection) |
put a JSONArray at a specific index as a Collection
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(int index,
Map map) |
put a JSONObject as a map at a specific index
if the index is beyond the currently length the array will be buffered with nulls
|
JSONObject |
JSONObject.put(String key,
boolean value) |
put a boolean at a particular key
|
JSONObject |
JSONObject.put(String key,
double value) |
put a double at a particular key
|
JSONObject |
JSONObject.put(String key,
float value) |
put a float at a particular key
|
JSONObject |
JSONObject.put(String key,
int value) |
put a int at a particular key
|
JSONObject |
JSONObject.put(String key,
long value) |
put a long at a particular key
|
JSONObject |
JSONObject.put(String key,
Number value) |
put a Number at a particular key
|
JSONObject |
JSONObject.put(String key,
Object value) |
put an object to a key.
|
JSONObject |
JSONObject.put(String key,
String value) |
put a String at a particular key
|
JSONObject |
JSONObject.put(String key,
Collection value) |
put a Collection as a JSONArray at a particular key
|
JSONObject |
JSONObject.put(String key,
Map value) |
put a Collection as a JSONArray at a particular key
|
JSONObject |
JSONObject.put(String key,
JSONArray array) |
put a JSONArray at a particular key
|
JSONObject |
JSONObject.put(String key,
JSONObject object) |
put a JSONObject at a particular key
|
<T extends Enum<T>> JSONObject |
JSONObject.put(String key,
T enumvalue) |
put a enum at a particular key.
|
JSONObject |
JSONObject.putOnce(String key,
Object value) |
put a value to a key only if it does not exist
|
JSONObject |
JSONObject.putOpt(String key,
Object value) |
optional put a value at a key as long as both they key and value are not null
otherwise it does nothing
|
JSONArray |
JSONObject.toJSONArray(JSONArray names) |
creates an array of the values for they keys you provide
|
JSONObject |
JSONArray.toJSONObject(JSONArray names) |
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
|
String |
JSONArray.toString(int indent) |
returns the String representation of the JSONArray
|
String |
JSONObject.toString(int i) |
render the object as a JSON String
|
static String |
JSONObject.valueToString(Object o) |
Converts an object to a JSON String
|
Writer |
JSONElement.write(Writer sw) |
Write the JSON to a Writer
|
Writer |
JSONElement.write(Writer sw,
int indentFactor,
int indent) |
Write the JSON to a Writer with a pretty format
due to limitations in GSON the index and indent are currently ignored
|