@Deprecated
public static final class JSONObject.Null
extends java.lang.Object
JSON.parse('{ "a": null }').a will evaluate to null instead
of JSONObject.Null.| Constructor and Description |
|---|
JSONObject.Null()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean()
Deprecated.
Null in JSON should evaluate to false
|
protected java.lang.Object |
clone()
Deprecated.
There is only intended to be a single instance of the NULL object,
so the clone method returns itself.
|
boolean |
equals(java.lang.Object object)
Deprecated.
A Null object is equal to the null value and to itself.
|
java.lang.String |
toString()
Deprecated.
Get the "null" string value.
|
protected final java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - An object to test for nullness.public boolean asBoolean()
public java.lang.String toString()
toString in class java.lang.Object