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 boolean
equals(java.lang.Object other)
java.lang.String
toString()
java.lang.String
toString(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:
equals
in classJSONObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in classJSONObject
- Returns:
- the object as a JSON string with no formatting
-
toString
public java.lang.String toString(int i) throws JSONException
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
-
-