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
-
class NullObject extends JSONObject
-
-
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 Constructor Description NullObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringtoString()java.lang.StringtoString(int i)render the object as a JSON String-
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
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classJSONObject
-
toString
public java.lang.String toString()
- Overrides:
toStringin classJSONObject- Returns:
- the object as a JSON string with no formatting
-
toString
public java.lang.String toString(int i) throws JSONExceptionDescription 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
-
-