Merge, index, iterate, and sort a `serde_json::Value`` (recursively).
This library supports both in-place recursive (can stack overflow) and allocating iterative merging.
toml
[dependencies]
serde_json_merge = "0"
For usage examples, check the examples and documentation.
bash
cargo run --example async_fs --features async -- --path ./
cargo run --example sync_fs --features sync,rayon -- --path ./
bash
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features
bash
cargo clippy --tests --benches --examples -- -Dclippy::all -Dclippy::pedantic
```bash cargo install cargo-criterion
cargo criterion --features full
cargo criterion --features sync -- sync
cargo criterion --features full -- dfs ```
Benchmark reports from CI are published are available here.
After i wrote this crate for another project and decided to publish it, I found (jsonvaluemerge)[https://crates.io/crates/jsonvaluemerge].
Looking through it, I added merge_index
inspired by their merge_in
API.