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 83 json-logic-js issues
Sort by recently updated
recently updated
newest added

I believe it should be possible to programmatically serialize a subset of Javascript (a function that returns a Number or Boolean and contains no loops or external function calls) into...

When using the number comparisons `>`, `>=`, `

Hello. I'm trying to write a code for a data interval check and I was having trouble at first with the nested-if logic. After reading #69 I **think** got it...

Would there be a TypeScript declaration file for this created anytime soon? there is typing for this in TypeScript and I was wondering whether it would be possible to have...

It works if I have < or > condition for "===" and "!==" won't work ![Play with JsonLogic in your Browser](https://user-images.githubusercontent.com/4018236/91434927-331ff380-e86e-11ea-8298-d05ccc7b9a20.png)

Observed in version `1.2.2` The following behaves as expected: ```javascript jsonLogic.apply({ "if": [ {"===": [1,1]}, { "key_1": true, "key_2": false }, { "key_1": false, "key_2": false }, ] }) ```...

This isn't an issue for this library so much as for JsonLogic in general. I started on a .Net implementation of JsonLogic, but found there were too many inconsistencies in...

Curious about if/how JsonLogic might support regex. For the `in` operator, the following example is given: `{"in":[ "Ringo", ["John", "Paul", "George", "Ringo"] ]}` There may be situations where it is...

``` const { JsonLogicUtil } = loadClass('utils'); let rules = { or: [ { and: [ { doesUserAppInclusionOrExclusionMatches: [ { var: 'userAppList', }, { segmentAppInclusion: [ 1, ], }, ],...