Uses of Class
kong.unirest.core.json.JSONArray

Packages that use JSONArray
Package
Description
 
 
  • Uses of JSONArray in kong.unirest.core

    Methods in kong.unirest.core that return JSONArray
    Modifier and Type
    Method
    Description
    JsonNode.getArray()
     
  • Uses of JSONArray in kong.unirest.core.json

    Methods in kong.unirest.core.json that return JSONArray
    Modifier and Type
    Method
    Description
    JSONArray.getJSONArray(int index)
    get a JSONArray at a specified index
    JSONObject.getJSONArray(String key)
    get the element as a JSONArray
    JSONObject.names()
    get the key names as a 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
    JSONObject.optJSONArray(String key)
    optionally get the element as a JSONArray
    JSONArray.put(boolean bool)
    add a Boolean to the array
    JSONArray.put(double num)
    add a double to the array
    JSONArray.put(float num)
    add a float to the array
    JSONArray.put(int num)
    add a int to the array
    JSONArray.put(int index, boolean bool)
    put a boolean at a specific index
    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.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.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.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.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.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.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.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.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.put(long num)
    add a long to the array
    JSONArray.put(Number num)
    add a Number to the array
    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.put(String str)
    add a String to the array
    JSONArray.put(Collection collection)
    add a JSONArray to the array
    JSONArray.put(Map map)
    add a JSONObject to the array as a map
    JSONArray.put(JSONArray array)
    append a JSONArray as an element to the end of the array
    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
    JSONObject.toJSONArray(JSONArray names)
    creates an array of the values for they keys you provide
    Methods in kong.unirest.core.json with parameters of type JSONArray
    Modifier and Type
    Method
    Description
    JSONArray.put(JSONArray array)
    append a JSONArray as an element to the end of the array
    JSONObject.put(String key, JSONArray array)
    put a JSONArray at a particular key
    JSONObject.toJSONArray(JSONArray names)
    creates an array of the values for they keys you provide
    JSONArray.toJSONObject(JSONArray names)
    Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.