JsonPathMatch<TValue> Struct

Represents a single value matched by a JSONPath evaluation.

public readonly struct JsonPathMatch<TValue>

Type parameters

TValue
The node type used by the JSONPath navigator.

Properties

NameDescription
PathGets the normalized path of the matched node (e.g. $['store']['book'][0]).
ValueGets the value of the matched node. May be null when the navigator represents JSON null as null.

Gets the normalized path of the matched node (e.g. $['store']['book'][0]).

public string Path { get; }

Property value

string

Remarks

The path is rendered on first access and cached, so evaluations that never read it do not pay for it.

Gets the value of the matched node. May be null when the navigator represents JSON null as null.

public TValue? Value { get; }

Property value

TValue?