Namespace: Json.Path
Inheritance: ISelector
Defines a path segment selector.
Methods
BuildString(StringBuilder builder)
Builds a string using a string builder.
Declaration
1
public abstract void BuildString(StringBuilder builder)
Parameter | Type | Description |
---|---|---|
builder | StringBuilder | The string builder. |
Evaluate(Node match, JsonNode rootNode)
Evaluates the selector.
Declaration
1
public abstract IEnumerable<Node> Evaluate(Node match, JsonNode rootNode)
Parameter | Type | Description |
---|---|---|
match | Node | The node to evaluate. |
rootNode | JsonNode | The root node (typically used by filter selectors, e.g. $[?@foo < $.bar] ) |
Returns
A collection of nodes.
Semantically, this is a nodelist, but leaving as IEnumerable<Node> allows for deferred execution.