Skip to main content

json_diff

Function json_diff 

Source
pub fn json_diff(
    old_json: &str,
    new_json: &str,
) -> Result<Vec<JsonDiffOp>, DiffError>
Expand description

Computes a structural diff between two JSON strings.

ยงErrors

Returns DiffError::Serialization if either string is not valid JSON.