Package | Description |
---|---|
kong.unirest | |
kong.unirest.json |
Modifier and Type | Method and Description |
---|---|
JSONObject |
JsonNode.getObject() |
Constructor and Description |
---|
JsonPatchItem(JSONObject row) |
Modifier and Type | Method and Description |
---|---|
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
|
JSONObject |
JSONArray.getJSONObject(int index)
get a JSONObject at a specified index
|
JSONObject |
JSONObject.getJSONObject(String key)
get the element as a JSONObject
|
JSONObject |
JSONObject.increment(String key)
increments a numeric value by 1, or creates it with a value of 1 if
it does not exist.
|
JSONObject |
JSONArray.optJSONObject(int index)
get a JSONObject at a specified index or null if it does not exist
or is not a valid JSONObject
|
JSONObject |
JSONObject.optJSONObject(String key)
get the element as a JSONObject
|
JSONObject |
JSONObject.put(String key,
boolean value)
put a boolean 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,
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,
JSONArray array)
put a JSONArray at a particular key
|
JSONObject |
JSONObject.put(String key,
JSONObject object)
put a JSONObject at a particular key
|
JSONObject |
JSONObject.put(String key,
long value)
put a long 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,
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
|
<T extends Enum<T>> |
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
|
JSONObject |
JSONArray.toJSONObject(JSONArray names)
Produce a JSONObject by combining a JSONArray of names with the values of
this JSONArray.
|
Modifier and Type | Method and Description |
---|---|
static String[] |
JSONObject.getNames(JSONObject jsonObject)
get all of the keys of a JSONObject
|
JSONArray |
JSONArray.put(JSONObject object)
append a JSONObject to the end of the array
|
JSONObject |
JSONObject.put(String key,
JSONObject object)
put a JSONObject at a particular key
|
Copyright © 2021. All rights reserved.