Evaluate(JsonElement, Func<JsonElement, Boolean>, IReadOnlyDictionary<String, JsonElement>?) Method

Definition

Namespace JQLite
Assembly JQLite.dll

Evaluates the expression on input, giving each result to onResult as soon as it is produced; the callback returns false to stop the evaluation (stopping is not an error).

public void Evaluate(JsonElement input, Func<JsonElement, bool> onResult, IReadOnlyDictionary<string, JsonElement>? variables = null)

Parameters

input
JsonElement

The input value.

onResult
Func<JsonElement, Boolean>

Receives each result; returns true to go on.