JsonPathMatch Struct

Represents a single node matched by a JSONPath evaluation.

public readonly struct JsonPathMatch

Properties

NameDescription
PathGets the normalized path of the matched node (e.g. $['store']['book'][0]).
ValueGets the JSON value of the matched node. May be null when the matched value is JSON 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 JSON value of the matched node. May be null when the matched value is JSON null.

public JsonNode? Value { get; }

Property value

JsonNode?