Skip to main content

json_diff

Function json_diff 

Source
pub fn json_diff(expected: &Value, received: &Value) -> String
Expand description

Render expected vs received as pretty JSON + a unified diff. Suitable for toEqual / toMatchObject / toContainEqual where the full structural shape matters.