json-logic-js icon indicating copy to clipboard operation
json-logic-js copied to clipboard

Build complex rules, serialize them as JSON, and execute them in JavaScript

Results 79 json-logic-js issues
Sort by recently updated
recently updated
newest added

Hey, Say I have an object ```json {"my.key":"abc"} ``` how can I reference this with jsonlogic? if I do ```json {"var":"my.key"} ``` it looks for a nested field, but there...

Some operators, for example `if`, `map`, `reduce` etc. have modified scope for evaluation, so that the parameters passed into these operators aren't automatically evaluated but instead conditionally evaluated based on...

This is probably a newbie question and I searched but couldn't find a relevant resolved issue. I have the need to write an expression that references data values outside of...

The `is_logic` function seems to cause some confusion. Here are relevant conversations: * https://github.com/jwadhams/json-logic-js/issues/78#issuecomment-596807724 * https://github.com/jwadhams/json-logic-js/issues/27#issuecomment-301113332 * https://github.com/jwadhams/json-logic-js/pull/51#issuecomment-1399379554 This ticket is to find some way to reduce the confusion around...

Fixes https://github.com/jwadhams/json-logic-js/issues/122 at least partially. I think this functionality would pair nicely with https://github.com/jwadhams/json-logic-js/issues/116, which would allow a custom operation to know whether a given key is a valid operation...

Fixes https://github.com/jwadhams/json-logic-js/issues/108 This PR explains that TypeScript definitions can be installed. Additionally, it shows an example of how to import JSON Logic into a TypeScript file. I searched around for...

Hello! I am and have been a huge fan of JSON Logic & the language you've designed. For a while I've maintained an alternative JSON Logic implementation, and I'm curious...

Change the reduce function to evaluate the initial value, which lets us capture state for use in the logic function. Normally, when we iterate through elements in a reduce function,...

**Changes:** - Added `controlledExecution` option on `add_operation` function - Added unit tests `controlledExecution` **Description** This PR adds functionality so that when registering a custom operator with the `add_operator` method, you...