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

Given the following rule: ```javascript { "in": [ "1", { "var": "MyData.Values" } ] } ``` Using it on the following data will cause an error when, IMO, it should...

has anyone been able to integrate this beauty with ionic or angular ? if so how ? thanks in advance !! Cheers

Scenario: - Have a website with a large form with check/text boxes and filter the data set - PHP has to query MySQL with a boolean query like "... WHERE...

These new operators allow you to run tests on arrays of objects. First argument is an array. Second is a logic object. The logic object is run with a local...

I'm curious, what do you think about setting up a wiki page on this repo to collect various operations people come up with? I noticed that there are a few...

I'm wrestling with a problem that is really keeping me from just going crazy with json-logic. I'm performing lookup and matching between data found in item A and data available...

One of my developers ran into a problem with my API that uses json-logic for parsing. In the normal case, they might have a query such as these: ``` {"~":...

Currently, "in" supports these cases: Primitive element in array: `{"in":[ "Ringo", ["John", "Paul", "George", "Ringo"] ]}` Substring in string: `{"in":["Spring", "Springfield"]}` However, if the array you are testing for containment...

This will allow using "." in variable names

Is it possible to use JSONLogic as a query language to filter JSON? Something like this: ```javascript var data = [ { "id": 1, "name": "Oliver", "email": "[email protected]" }, {...