Utf8JsonReader.CurrentDepth Property


Gets the depth of the current token.

 property int CurrentDepth { int get(); };
public int CurrentDepth { get; }
member this.CurrentDepth : int
Public ReadOnly Property CurrentDepth As Integer

Property Value

The depth of the current token.


The CurrentDepth property tracks the recursive depth of the nested objects or arrays within the JSON text processed so far.

Applies to