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

Definition

Namespace JQLite
Assembly JQLite.dll

Evaluates the expression on input and returns all its results, computed before the list is returned.

public IReadOnlyList<JsonElement> Evaluate(JsonElement input, IReadOnlyDictionary<string, JsonElement>? variables = null)

Parameters

input
JsonElement

The input value.

variables
IReadOnlyDictionary<String, JsonElement>

Host variables, by name without $ ("root" is $root): each name a jq identifier, ENV excluded. A variable the expression uses but the host does not give is the runtime error $name is not defined; a binding in the expression shadows a host variable.

Returns