Skip to main content

getExpressionParserJsonLogic()

getExpressionParserJsonLogic(customInverse?: JsonLogicInverse, customMeta?: ExpressionFunctionMetaRegistry): JsonLogicExpressionParser

Defined in: expr/src/parsers/getExpressionParserJsonLogic.ts:33

Generates a getExpression handler for @react-querybuilder/core/parseJsonLogic!parseJsonLogic. Pass customInverse to add operations or override built-ins (merged over defaultJsonLogicInverse), and customMeta to supply arity metadata for custom functions. The returned handler builds an ExpressionNode from a JsonLogic operand subtree and auto-validates it, returning null (rule dropped) for unknown operations or arity mismatches — the import-side mirror of getExpressionRuleProcessorJsonLogic.

Parameters​

ParameterType
customInverse?JsonLogicInverse
customMeta?ExpressionFunctionMetaRegistry

Returns​

JsonLogicExpressionParser


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.