System.JSON.Builders.TJSONIterator.Depth
Delphi
property Depth: Integer read GetDepth;
C++
__property int Depth = {read=GetDepth, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.JSON.Builders.pas System.JSON.Builders.hpp |
System.JSON.Builders | TJSONIterator |
Description
Number of arrays and objects that contain the current token, directly and indirectly.
When you start iterating the source JSON reader, Depth is 0. Each time that you use recursion to go into an array or an object, the depth increases by 1. When you leave an array or object, either because you have reached its end or because you skipped to its end using Return, the depth decreases by 1.