Description

JsonVariantConst::nesting() returns the depth (i.e., the nesting level) of the value pointed by the JsonVariantConst

JSON Nesting
null 0
"string" 0
[0] 1
[[0]] 2
{"a":0} 1
{"a":{"b":0}} 2
{"a":{"b":[0]}} 3

Signature

size_t nesting() const;

See also