datalogic-rs 4.0.21

A fast, type-safe Rust implementation of JSONLogic for evaluating logical rules as JSON. Perfect for business rules engines and dynamic filtering in Rust applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[
    {
        "description": "Modulo with dynamic array invalid",
        "rule": { "%": { "preserve": [] } },
        "error": { "type": "Invalid Arguments" },
        "data": null
    },
    {
        "description": "Modulo with dynamic array invalid",
        "rule": { "%": { "preserve": [1] } },
        "error": { "type": "Invalid Arguments" },
        "data": null
    }
]