Description

JsonArrayConst::isNull() tells whether the JsonArrayConst points to an array or not.

You can use this function to:

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

See also

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