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
[
    {
        "description": "Throws hello as an error",
        "rule": { "throw": "hello" },
        "data": null,
        "error": { "type": "hello" }
    },
    {
        "description": "Throwing NaN produces an error object or measured equivalent (equivalence class test)",
        "rule": { "throw": "NaN" },
        "data": null,
        "error": { "type": "NaN" }
    },
    {
        "description": "Can throw an error object",
        "rule": { "throw": { "val": "x" } },
        "data": { "x": { "type": "Some error" }},
        "error": { "type": "Some error" }
    }
]