Expand description
Structural JSON diff with path tracking.
§Example
use philiprehberger_json_diff::diff;
use serde_json::json;
let a = json!({"name": "Alice", "age": 30});
let b = json!({"name": "Alice", "age": 31});
let changes = diff(&a, &b);
assert_eq!(changes.len(), 1);Structs§
- Change
- A single change between two JSON values.
- Diff
Summary - Summary counts of changes by type.
Enums§
- Change
Type - The type of change detected between two JSON values.
Functions§
- diff
- Compute a structural diff between two JSON values.
- diff_
summary - Summarize a list of changes by counting each type.