EvaluateAsync(String, IAsyncEnumerable, IReadOnlyDictionary<String, JsonElement>?, CancellationToken) Method

Definition

Namespace JQLite
Assembly JQLite.dll

Parses expression with the default options and evaluates it on each value of input in turn (a JSON Lines stream, for example), yielding the results of each.

public static IAsyncEnumerable<JsonElement> EvaluateAsync(string expression, IAsyncEnumerable<JsonElement> input, IReadOnlyDictionary<string, JsonElement>? variables = null, [EnumeratorCancellation] CancellationToken cancellationToken = default(CancellationToken))

Parameters

expression
String

The jq expression.

input
IAsyncEnumerable<JsonElement>

The input values.

variables
IReadOnlyDictionary<String, JsonElement>

Host variables for every evaluation.

cancellationToken
CancellationToken

Stops reading input.

Returns