Uses of Class
kong.unirest.core.json.JSONObject
Packages that use JSONObject
-
Uses of JSONObject in kong.unirest.core
Fields in kong.unirest.core declared as JSONObjectMethods in kong.unirest.core that return JSONObjectConstructors in kong.unirest.core with parameters of type JSONObject -
Uses of JSONObject in kong.unirest.core.json
Subclasses of JSONObject in kong.unirest.core.jsonFields in kong.unirest.core.json declared as JSONObjectMethods in kong.unirest.core.json that return JSONObjectModifier and TypeMethodDescriptionJSONObject.accumulate
(String key, Object additionalValue) Add a element to a JSONArray in a element.appends to an existing arrayJSONArray.getJSONObject
(int index) get a JSONObject at a specified indexJSONObject.getJSONObject
(String key) get the element as a JSONObjectincrements a numeric value by 1, or creates it with a value of 1 if it does not exist.JSONArray.optJSONObject
(int index) get a JSONObject at a specified index or null if it does not exist or is not a valid JSONObjectJSONObject.optJSONObject
(String key) get the element as a JSONObjectput a boolean at a particular keyput a double at a particular keyput a float at a particular keyput a int at a particular keyput a long at a particular keyput a Number at a particular keyput an object to a key.put a String at a particular keyJSONObject.put
(String key, Collection value) put a Collection as a JSONArray at a particular keyput a Collection as a JSONArray at a particular keyput a JSONArray at a particular keyJSONObject.put
(String key, JSONObject object) put a JSONObject at a particular key<T extends Enum<T>>
JSONObjectput a enum at a particular key.put a value to a key only if it does not existoptional put a value at a key as long as both they key and value are not null otherwise it does nothingJSONArray.toJSONObject
(JSONArray names) Produce a JSONObject by combining a JSONArray of names with the values of this JSONArray.Methods in kong.unirest.core.json with parameters of type JSONObjectModifier and TypeMethodDescriptionstatic String[]
JSONObject.getNames
(JSONObject jsonObject) get all of the keys of a JSONObjectJSONArray.put
(JSONObject object) append a JSONObject to the end of the arrayJSONObject.put
(String key, JSONObject object) put a JSONObject at a particular keyConstructors in kong.unirest.core.json with parameters of type JSONObject