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
15
16
17
[
    "# Not Proposed",
    {
        "description": "Try can work further up the AST with Exceptions; Grabbing other Context value",
        "rule": {
            "try": [{
                "if": [
                    true,
                    { "map": [[1,2,3], {"/": [0, 0] }]},
                    null
                ]
            }, { "val": [[2], "fallback"] }]
        },
        "result": "Hello",
        "data": { "fallback": "Hello" }
    }
]