Skip to content

Utf8JsonWriter.CurrentDepth Property

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: Utf8JsonWriter.cs

CurrentDepth()

Tracks the recursive depth of the nested objects / arrays within the JSON text written so far. This provides the depth of the current token.

public int CurrentDepth { get; }

Returns

int

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue