Description

JsonArray::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