This class has been deprecated, should no longer be referenced and
has been removed from Grails 3.1. As of Grails 2.5.1 and 3.0.4 an expression
like JSON.parse('{ "a": null }').a will evaluate to null instead
of JSONObject.Null.
| Type | Name and description |
|---|---|
boolean |
asBoolean()Null in JSON should evaluate to false |
protected java.lang.Object |
clone()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)A Null object is equal to the null value and to itself. |
java.lang.String |
toString()Get the "null" string value. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Null in JSON should evaluate to false
There is only intended to be a single instance of the NULL object, so the clone method returns itself.
A Null object is equal to the null value and to itself.
object - An object to test for nullness.Get the "null" string value.