Skip to main content

Crate philiprehberger_json_diff

Crate philiprehberger_json_diff 

Source
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.
DiffSummary
Summary counts of changes by type.

Enums§

ChangeType
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.