Home EvaluationContext Class
EvaluationContext Class
Cancel

EvaluationContext Class

Namespace: Json.Logic

Inheritance: EvaluationContext 🡒 object

Provides context data for JSON-e evaluation.

Properties

NameTypeSummary
CurrentValueJsonNodeThe top-level context value.

Methods

Pop()

Declaration

1
public JsonNode Pop()

Returns

Push(JsonNode newContext)

Adds or overrides context data.

Declaration

1
public void Push(JsonNode newContext)
ParameterTypeDescription
newContextJsonNode 

TryFind(string path, out JsonNode result)

Attempts to resolve a variable path within the entire context.

Declaration

1
public bool TryFind(string path, out JsonNode result)
ParameterTypeDescription
pathstringThe variable path.
resultout JsonNodeThe result, if found; null otherwise..

Returns

true if the path was found; false otherwise.

Contents