pub fn equals(lhs: &Value<'_>, rhs: &Value<'_>) -> Result<bool, EvalError>Expand description
jsonb = jsonb structural equality (PG18-compatible). PG’s jsonb
equality is order-INDEPENDENT for object keys but order-SENSITIVE
for array elements, and it compares numbers by value (so
'1'::jsonb = '1.0'::jsonb is true). json_eq encodes those rules;
this parses both operands and delegates. Values reaching here through
the ::jsonb cast / a jsonb column are already canonicalised (keys
sorted, duplicates collapsed), so object equality is exact.