Skip to main content

json_equivalent

Function json_equivalent 

Source
pub fn json_equivalent(left: &Value, right: &Value) -> bool
Expand description

Whether two JSON values carry the same data. Numbers compare by value: a client that decodes and re-encodes a reviewed change may write 2.0 as 2, and that is the state it was reviewed against, not a stale one.