Skip to main content

compare_json

Function compare_json 

Source
pub fn compare_json(a: &Value, b: &Value) -> Ordering
Expand description

Compare two JSON values with type coercion.

Numeric comparison first (with bool coercion, exact for integers and decimal text, NaN above every number), then string comparison of the display forms.