Uses of Class
kong.unirest.core.json.JSONArray
Packages that use JSONArray
-
Uses of JSONArray in kong.unirest.core
Fields in kong.unirest.core declared as JSONArrayMethods in kong.unirest.core that return JSONArray -
Uses of JSONArray in kong.unirest.core.json
Fields in kong.unirest.core.json declared as JSONArrayMethods in kong.unirest.core.json that return JSONArrayModifier and TypeMethodDescriptionJSONArray.getJSONArray
(int index) get a JSONArray at a specified indexJSONObject.getJSONArray
(String key) get the element as a JSONArrayJSONObject.names()
get the key names as a JSONArrayJSONArray.optJSONArray
(int index) get a String at a specified index, or null if the value does not exist or is not a JSONArrayJSONObject.optJSONArray
(String key) optionally get the element as a JSONArrayJSONArray.put
(boolean bool) add a Boolean to the arrayJSONArray.put
(double num) add a double to the arrayJSONArray.put
(float num) add a float to the arrayJSONArray.put
(int num) add a int to the arrayJSONArray.put
(int index, boolean bool) put a boolean at a specific indexJSONArray.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 nullsJSONArray.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 nullsJSONArray.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 nullsJSONArray.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 nullsput a Number at a specific instance if the index is beyond the currently length the array will be buffered with nullsput a object at a specific instance if the index is beyond the currently length the array will be buffered with nullsput a String at a specific index if the index is beyond the currently length the array will be buffered with nullsJSONArray.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 nullsput a JSONObject as a map at a specific index if the index is beyond the currently length the array will be buffered with nullsprivate JSONArray
JSONArray.put
(int index, JsonEngine.Element o) 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 nullsJSONArray.put
(long num) add a long to the arrayadd a Number to the arrayadd a Object to the array Must be a valid JSON type or else it will be turned into a stringadd a String to the arrayJSONArray.put
(Collection collection) add a JSONArray to the arrayadd a JSONObject to the array as a mapappend a JSONArray as an element to the end of the arrayJSONArray.put
(JSONObject object) append a JSONObject to the end of the arrayJSONArray.put
(T enumValue) put a enum which will be put as the string nameJSONObject.toJSONArray
(JSONArray names) creates an array of the values for they keys you provideprivate static JSONArray
Methods in kong.unirest.core.json with parameters of type JSONArrayModifier and TypeMethodDescriptionappend a JSONArray as an element to the end of the arrayput a JSONArray at a particular keyJSONObject.toJSONArray
(JSONArray names) creates an array of the values for they keys you provideJSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.Constructors in kong.unirest.core.json with parameters of type JSONArray