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