pub fn json_diff(expected: &Value, received: &Value) -> String
Render expected vs received as pretty JSON + a unified diff. Suitable for toEqual / toMatchObject / toContainEqual where the full structural shape matters.
expected
received
toEqual
toMatchObject
toContainEqual