JsonArray::nesting()
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;
JsonArray::nesting()
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 |
size_t nesting() const;