Package kong.unirest.core.json
Class NullObject
java.lang.Object
kong.unirest.core.json.JSONElement
kong.unirest.core.json.JSONObject
kong.unirest.core.json.NullObject
-
Field Summary
Fields inherited from class kong.unirest.core.json.JSONObject
NULL
Fields inherited from class kong.unirest.core.json.JSONElement
MAPPER
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class kong.unirest.core.json.JSONObject
accumulate, append, asElement, doubleToString, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, hashCode, increment, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optNumber, optNumber, optString, optString, put, put, put, put, put, put, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, similar, stringToValue, toJSONArray, toMap, valueToString, wrap
Methods inherited from class kong.unirest.core.json.JSONElement
getElement, optQuery, optQuery, query, query, toJson, toJsonObject, toMap, toPrettyJson, toTree, write, write, write
-
Constructor Details
-
NullObject
NullObject()
-
-
Method Details
-
equals
- Overrides:
equals
in classJSONObject
-
toString
- Overrides:
toString
in classJSONObject
- Returns:
- the object as a JSON string with no formatting
-
toString
Description copied from class:JSONObject
render the object as a JSON String- Overrides:
toString
in classJSONObject
- Parameters:
i
- (ignored due to limitations in gson which uses a hardcoded indentation)- Returns:
- a JSON String
- Throws:
JSONException
-