Table of Contents

Struct JsonPathToken

Namespace
MRX.Json.Path
Assembly
MRX.Json.dll

Represents a single token extracted while walking a JSON path.

public readonly record struct JsonPathToken : IEquatable<JsonPathToken>
Implements
Inherited Members

Constructors

JsonPathToken(string, JsonPathTokenType, bool)

Represents a single token extracted while walking a JSON path.

public JsonPathToken(string Token, JsonPathTokenType Type, bool EndOfPath)

Parameters

Token string

The raw text of the token.

Type JsonPathTokenType

The kind of token (property name, array index, etc.).

EndOfPath bool

Whether this token is the last one in the path.

Properties

EndOfPath

Whether this token is the last one in the path.

public bool EndOfPath { get; init; }

Property Value

bool

Token

The raw text of the token.

public string Token { get; init; }

Property Value

string

Type

The kind of token (property name, array index, etc.).

public JsonPathTokenType Type { get; init; }

Property Value

JsonPathTokenType