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

Hi, Is it possible that statement `if` render an object ? For example : ``` js { if : [ test, // true or false { myProp : "OK" }...

I have installed json-logic-js like this: `npm install json-logic-js` but how can I import it? I have tried these but still not working: `import {jsonLogic} from 'json-logic-js/logic.js'` `import {jsonLogic} from...

- ECMA Modules - Formatted code with Prettier (JS and JSON files) - Modularised & Bundled - Smarter state management & Exposed `JSONLogic` class for managing multiple operations directories -...

In the playground, I tried: Rule: `{"max":{"var": "a"}}` Data: `{"a":[1,2,3,4,5]}` Expected Result: `5` Actual Result: `null`

My code changes to implement consistent, language independent logic described in Issue #44. All original tests from http://jsonlogic.com still pass successfully. And I've added my own set of tests called...

The license of the project says: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." but the main logic.js...

I didn't notice whether you had or planned to develop functions that included arrays that contained objects. So for example if wanted to return true if there is an apple...

First of all, thanks for this great module. I have found it really usefull. I have decided to submit this pull request, because we have had some strange behaviour handling...

I was trying to find a way to store simple automation rules in the database and pass them between UI and backend. And **json-logic** seems to be a perfect fit...

Hey, I created a PR over on the ruby version of this, but I'm not sure that repo is still maintained. It actually doesn't pass the test.json tests you offer,...