JsonVariantConst is an immutable version of JsonVariant; only use it if you want to enforce immutability.

Description

JsonVariantConst::isNull() tells whether the variant points to a value or not.

As an alternative, you can use the conversion to bool; for example, if(variant) instead of if(!variant.isNull())

Signature

bool isNull() const;

Return value

JsonVariantConst::isNull() returns a bool that tells if the JsonVariantConst points to something or not:

See also