Skip to main content

equal_value

Function equal_value 

Source
pub fn equal_value(got: &Value, expected: &Value) -> bool
Expand description

Compare a parse result against an expected value with JSON semantics: structural, key-order independent, NaN equal to itself, and -0 NOT equal to 0. Those last two are the two halves of ADR-15, and they go opposite ways on purpose. See Value’s equality.