JSONArray |
JSONArray.getJSONArray(int index) |
get a JSONArray at a specified index
|
JSONArray |
JSONObject.getJSONArray(String key) |
get the element as a JSONArray
|
JSONArray |
JSONObject.names() |
get the key names as a JSONArray
|
JSONArray |
JSONArray.optJSONArray(int index) |
get a String at a specified index, or null
if the value does not exist or is not a JSONArray
|
JSONArray |
JSONObject.optJSONArray(String key) |
optionally get the element as a JSONArray
|
JSONArray |
JSONArray.put(boolean bool) |
add a Boolean to the array
|
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 num) |
add a int 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,
Number number) |
put a Number 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,
String string) |
put a String at a specific index
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
|
<T extends Enum> JSONArray |
JSONArray.put(int index,
T enumValue) |
put a Enum name at a specific index as a string
if the index is beyond the currently length the array will be buffered with nulls
|
JSONArray |
JSONArray.put(long num) |
add a long to the array
|
JSONArray |
JSONArray.put(Number num) |
add a Number to the array
|
JSONArray |
JSONArray.put(Object object) |
add a Object to the array
Must be a valid JSON type or else it will be turned into a string
|
JSONArray |
JSONArray.put(String str) |
add a String to the array
|
JSONArray |
JSONArray.put(Collection collection) |
add a JSONArray to the array
|
JSONArray |
JSONArray.put(Map map) |
add a JSONObject to the array as a map
|
JSONArray |
JSONArray.put(JSONArray array) |
append a JSONArray as an element to the end of the array
|
JSONArray |
JSONArray.put(JSONObject object) |
append a JSONObject to the end of the array
|
<T extends Enum> JSONArray |
JSONArray.put(T enumValue) |
put a enum which will be put as the string name
|
JSONArray |
JSONObject.toJSONArray(JSONArray names) |
creates an array of the values for they keys you provide
|