Skip to main content

values_equal

Function values_equal 

Source
pub fn values_equal(a: &JValue, b: &JValue) -> bool
Expand description

Compare two JSON values for deep equality (JSONata semantics)

Cannot return Result, so a lazy-conversion failure in the LazyPyDict arms below is swallowed and yields false (not-equal), by design – callers that need the failure to surface as a Python TypeError (the =/!=/in operators) must call evaluator::normalize_lazy on their operands before calling this function.