Skip to main content

diff

Function diff 

Source
pub fn diff(old: &Value, new: &Value, identity_key: &str) -> DiffResult
Expand description

Compute semantic diff between two JSON values

This differs from a standard JSON diff by:

  • Using key-based matching for arrays (by identity_key, typically “name”)
  • Producing human-readable paths
  • Ignoring order for objects