Skip to content

romnn/serde_json_merge

Repository files navigation

serde_json_merge

build status test status benchmarks crates.io docs.rs

Merge, index, iterate, and sort a serde_json::Value (recursively).

This library supports in-place merging and sorting using DFS and BFS traversal.

[dependencies]
serde_json_merge = "0"

Usage

For usage examples, check the examples and documentation.

Examples

TODO: embed these examples here

cargo run --example async_fs --features async -- --path ./
cargo run --example sync_fs --features sync,rayon -- --path ./

Development

cargo install cargo-criterion
cargo install cargo-feature-combinations
brew install taskfile

# see a list of development tasks such as `test`, `bench`, or `lint`
task --list

Benchmark reports are available here.

Acknowledgements

After I wrote this crate for another project and decided to publish it, I found json_value_merge.

Looking through it, I added merge_index inspired by their merge_in API.