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

Build complex rules and serialize them to JSON

Results 28 json-logic issues
Sort by recently updated
recently updated
newest added

For strings, returns their length in characters. (Note there can be oddities in a language's string length calculation, like JavaScript's `"🤔 ".length === 2`) For arrays, returns the number of...

Resolves #34 I don't know whether you'll need to update your implementations, but this seems right to me.

When comparing null values to 0 with the `>=` operator , I get the following result: `{">=" : [null,0]} //result is true` However, these operators yield the results: `{">" :...

I couldn't find a C++ implementation of JsonLogic, so I made my own: [gabrielkim13/json-logic-cpp](https://github.com/gabrielkim13/json-logic-cpp). It uses [nlohmann/json](https://github.com/nlohmann/json) library under the hood.

The [table](https://jsonlogic.com/truthy.html) presented on the website doesn't list how to treat objects (empty or non-empty) in regard to truthiness. Is this defined somewhere else? On your playground, ```json { "if":...

Hi guy's, was looking for .Net Core implementation. Did not find it so I builded it. you can find the source [here ](https://github.com/pandaGaume/JsonLogic.Net) on git.

This doesn't give the expected result: ``` let logic = { "max": { "var": "myarray" } } let data = { "myarray": [ 1, 2, 3 ] } JSONLogic.apply(logic,data) result:...

Hi If I have some "table data", I would like to look up in, if some criteria are fulfilled, is that possible to do that in jsonlogic? (like in sql...

These business rules defined in json logic is missing one essential thing as far as I see it that is date time handling in rules. I would love to be...

Hello, Thank you for the great library. I added a custom function with complex params. when the function is applied, it throws an error 'throw new Error("Unrecognized operation " +...