<PackageReference Include="System.Text.Json" Version="7.0.4" />

ReadStack

struct ReadStack
public long BytesConsumed

Bytes consumed in the current loop.

Exposes the stackframe that is currently active.

Holds the value of $type of the currently read object

public bool PreserveReferences

Global flag indicating whether we can read preserved references.

public bool ReadAhead

Internal flag to let us know that we need to read ahead in the inner read loop.

public string ReferenceId

Holds the value of $id or $ref of the currently read object

public bool SupportContinuation

Whether we need to read ahead in the inner read loop.

public bool IsContinuation { get; }

Indicates that the state still contains suspended frames waiting re-entry.

public void ExitPolymorphicConverter(bool success)

Updates frame state after a polymorphic converter has returned.

Configures the current stack frame for a polymorphic converter.

public string JsonPath()

public void Pop(bool success)

public void Push()

Configures the current frame for a continuation of a polymorphic converter.