Table of Contents

Struct JsonNavigationSegment

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Identifies one step of a targeted-deserialization path: an object member (or dictionary entry) by serialized name, or an array element by index.

public readonly struct JsonNavigationSegment
Inherited Members

Remarks

This is passed to TryNavigate(ref JsonReader, in JsonNavigationSegment, JsonNavigationOptions) so a converter can translate a logical segment into a navigation over its own JSON representation.

Properties

Index

Gets the array element index when IsIndex is true.

public int Index { get; }

Property Value

int

IsIndex

Gets a value indicating whether this segment selects an array element by Index.

public bool IsIndex { get; }

Property Value

bool

Name

Gets the serialized member name when IsIndex is false.

public string? Name { get; }

Property Value

string