Uses of Class
kong.unirest.core.json.JSONException
Packages that use JSONException
-
Uses of JSONException in kong.unirest.core.json
Subclasses of JSONException in kong.unirest.core.jsonMethods in kong.unirest.core.json that throw JSONExceptionModifier and TypeMethodDescriptionJSONObject.accumulate(String key, Object additionalValue) Add a element to a JSONArray in a element.appends to an existing arrayJSONArray.get(int index) get the element at the indexget and element by key as its native objectJSONArray.getBigDecimal(int index) get a BigDecimal at a specified indexJSONObject.getBigDecimal(String key) get an element property as a BigDecimalJSONArray.getBigInteger(int index) get a BigInteger at a specified indexJSONObject.getBigInteger(String key) get an element property as a BigIntegerbooleanJSONArray.getBoolean(int index) get a boolean at a specified indexbooleanJSONObject.getBoolean(String key) gets a boolean value at a particular keydoubleJSONArray.getDouble(int index) get a Double at a specified indexdoubleget the value as a double<T extends Enum<T>>
Tget a enum value based on name from a specific index<T extends Enum<T>>
Tget element as a enum valuefloatJSONArray.getFloat(int index) get a Float at a specified indexfloatget the value as a floatintJSONArray.getInt(int index) get a int at a specified indexintget an element property as a intJSONArray.getJSONArray(int index) get a JSONArray at a specified indexJSONObject.getJSONArray(String key) get the element as a JSONArrayJSONArray.getJSONObject(int index) get a JSONObject at a specified indexJSONObject.getJSONObject(String key) get the element as a JSONObjectlongJSONArray.getLong(int index) get a long at a specified indexlongget the value as a longJSONArray.getNumber(int index) get a Number at a specified indexget an element property as a NumberJSONArray.getString(int index) get a String at a specified indexget a element property as a stringincrements a numeric value by 1, or creates it with a value of 1 if it does not exist.return the array as a string delimited by a specific tokenJsonEngine.newEngineObject(String string) JsonEngine.newJsonArray(String jsonString) static StringJSONObject.numberToString(Number number) Convert a number to a stringJSONArray.put(double num) add a double to the arrayJSONArray.put(float num) add a float 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 object at a specific instance 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 nullsput 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 nothingJSONObject.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.JSONArray.toString(int indent) returns the String representation of the JSONArrayJSONObject.toString(int i) render the object as a JSON StringNullObject.toString(int i) static StringJSONObject.valueToString(Object o) Converts an object to a JSON StringWrite the JSON to a WriterWrite the JSON to a Writer with a pretty format due to limitations in GSON the index and indent are currently ignored -
Uses of JSONException in kong.unirest.modules.jackson
Methods in kong.unirest.modules.jackson that throw JSONExceptionModifier and TypeMethodDescriptionJacksonEngine.newEngineObject(String string) JacksonEngine.newJsonArray(String jsonString)