jsonlogic_rs
A JsonLogic implementation in Rust.
To use this library, add
[]
= "0.5"
to your Cargo.toml
.
Usage
use ;
let rule = json!;
let data = json!;
assert_eq!;
let data = json!;
assert_eq!;
See the examples
directory for more usage examples.
Operations
jsonlogic_rs supports all JsonLogic operations. For detailed informations about all operations and their arguments, head over to Supported Operations on jsonlogic.com.
For Rust usage examples and edge cases have a look at the linked tests for each operator below.
- Accessing Data
- Logic and Boolean Operations
- Numeric Operations
- Array Operations
- String Operations
- Miscellaneous