Home IFilterExpression Interface
IFilterExpression Interface
Cancel

IFilterExpression Interface

Namespace: Json.Path

Inheritance: IFilterExpression

Exposes the filter expression.

Methods

BuildString(StringBuilder builder)

Builds a string using a string builder.

Declaration

1
public abstract void BuildString(StringBuilder builder)
ParameterTypeDescription
builderStringBuilderThe string builder.

Evaluate(JsonNode globalParameter, JsonNode localParameter)

Evaluates the selector.

Declaration

1
public abstract bool Evaluate(JsonNode globalParameter, JsonNode localParameter)
ParameterTypeDescription
globalParameterJsonNodeThe root node of the data, represented by $.
localParameterJsonNodeThe current node in the filter, represented by @.

Returns

true if the node should be selected; false otherwise.

Contents