Struct JsonPathToken
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
TokenstringThe raw text of the token.
TypeJsonPathTokenTypeThe kind of token (property name, array index, etc.).
EndOfPathboolWhether 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
Token
The raw text of the token.
public string Token { get; init; }
Property Value
Type
The kind of token (property name, array index, etc.).
public JsonPathTokenType Type { get; init; }