VOOZH about

URL: https://docs.json-everything.net/api/JsonLogic/LiteralRule/

⇱ LiteralRule Class | json-everything


πŸ‘ avatar
json-everything
Library documentation
Home LiteralRule Class
LiteralRule Class
Cancel

LiteralRule Class

Namespace: Json.Logic.Rules

Inheritance: LiteralRule πŸ‘’ Rule πŸ‘’ object

Provides a stand-in β€œrule” for literal values.

Remarks

This is not exactly part of the specification, but it helps things in this library.

Methods

Apply(JsonNode data, JsonNode contextData)

Applies the rule to the input data.

Declaration

1
public override JsonNode Apply(JsonNode data, JsonNode contextData)
ParameterTypeDescription
dataJsonNodeThe input data.
contextDataJsonNodeOptional secondary data. Used by a few operators to pass a secondary data context to inner operators.

Returns

The result of the rule.

Contents

A new version of content is available.