Description

JsonArrayConst::nesting() returns the depth (i.e., the nesting level) of the array.

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

Signature

size_t nesting() const;

See also

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