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.

Tries numeric comparison first (with bool coercion), then falls back to string comparison.