Structural JSON Diff Library for Rust
sjdiff
– is a library for Rust that compares two JSON values and produces a structural difference between them.
Features
- Compare any JSON value.
- Ignore JSON paths so they are not included in the result diff.
- Customize the equation logic, e.g.
null == []
,0.111 == 0.11
,2023-07-25T15:30:01Z == 2023-07-25T15:30:00Z
.
Example
Compare two objects:
See more in the examples.
Credits
Thanks to teajey – author of serde_json_diff. I forked that project and implemented additional features that were essential for my workflow.
License
MIT