Description

JsonObjectConst::isNull() tests whether the JsonObjectConst points to an object or not.

You can use this function to:

  1. check if the object was successfully parsed, or
  2. 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:

See also

Global warming stripes by Professor Ed Hawkins (University of Reading)