rs-json-diff
Structural JSON diff with path tracking for Rust
Installation
[]
= "0.1.8"
Usage
use ;
use json;
let a = json!;
let b = json!;
let changes = diff;
for change in &changes
let summary = diff_summary;
println!;
API
| Item | Description |
|---|---|
diff(a: &Value, b: &Value) -> Vec<Change> |
Compute structural diff between two JSON values |
diff_summary(changes: &[Change]) -> DiffSummary |
Summarize a list of changes by type counts |
ChangeType |
Enum: Added, Removed, Modified |
Change |
Struct with path, change_type, old_value, new_value |
DiffSummary |
Struct with added, removed, modified counts |
Development
Support
If you find this package useful, consider giving it a star on GitHub — it helps motivate continued maintenance and development.