Function JSONValue.hasType

Tests if the stored value is of a given type.

bool hasType(T) () const;