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 JSONObject
NULLFields inherited from class JSONElement
MAPPER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class 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, wrapMethods inherited from class JSONElement
getElement, optQuery, optQuery, query, query, toJson, toJsonObject, toMap, toPrettyJson, toTree, write, write, write
-
Constructor Details
-
NullObject
NullObject()
-
-
Method Details
-
equals
- Overrides:
equalsin classJSONObject
-
toString
- Overrides:
toStringin classJSONObject- Returns:
- the object as a JSON string with no formatting
-
toString
Description copied from class:JSONObjectrender the object as a JSON String- Overrides:
toStringin classJSONObject- Parameters:
i- (ignored due to limitations in gson which uses a hardcoded indentation)- Returns:
- a JSON String
- Throws:
JSONException
-