JsonObjectConst::isNull()
Description
JsonObjectConst::isNull()
tests whether the JsonObjectConst
points to an object or not.
You can use this function to:
- check if the object was successfully parsed, or
- check if the object was successfully allocated.
As an alternative, you can use the conversion to bool
; for example, if(object)
instead of if(!object.isNull())
Signature
bool isNull() const;
Return value
JsonObjectConst::isNull()
returns a bool
that tells if the JsonObjectConst
points to something:
true
if theJsonObjectConst
is null,false
if theJsonObjectConst
is valid and points to an object.