Skip to main content

diff

Function diff 

Source
pub fn diff(previous: &Value, next: &Value) -> Option<Value>
Expand description

Patch turning previous into next, or None when they are equal.

A patch that is not an object is a literal replacement, so null and arrays survive without a delete sentinel colliding with real null fields.