Skip to main content

diff_scoped_state

Function diff_scoped_state 

Source
pub fn diff_scoped_state(
    a: &Value,
    b: &Value,
    pointers: &[&str],
) -> ScopedStateDiff
Expand description

Diff two JSON values at the given RFC 6901 JSON pointer paths.

For each pointer, resolves the value in both a and b. If they differ (including one being absent while the other is present), a StateDelta is emitted. Pointers where both values are identical or both absent are skipped.