Skip to main content

parseJsonLogic

Converts a JsonLogic object into a DefaultRuleGroupType or DefaultRuleGroupTypeIC.

Functions

FunctionDescription
isJsonLogicExpressionOperandA JsonLogic comparison operand that is a candidate expression subtree: a plain object that is not a variable reference (i.e. an arithmetic/function operation object). The expr-supplied getExpression handler decides whether it maps to a known function.
isRQBJsonLogicVar-
parseJsonLogicConverts a JsonLogic object into a query suitable for the index!QueryBuilder QueryBuilder component's query or defaultQuery props (DefaultRuleGroupType).

Interfaces

InterfaceDescription
JsonLogicBetweenExclusive-
JsonLogicBetweenInclusive-
ParseJsonLogicExpressionContextContext passed to ParseJsonLogicOptions.getExpression.
ParseJsonLogicOptionsOptions object for parseJsonLogic.

Type Aliases

Type AliasDescription
JsonLogicExpressionOperandA JsonLogic operand subtree that ParseJsonLogicOptions.getExpression may receive — an arithmetic/function operation object, a variable reference, or a literal.

caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.