Skip to main content

DedupeJson

Function DedupeJson 

Source
fn DedupeJson(Value: &mut Value) -> bool
Expand description

Recursively dedupe arrays within a JSON tree. Returns true if any duplicates were removed. Equality is structural (compares whole JsonValues), order is preserved, first occurrence wins. Object keys are already unique by JSON semantics, so we only descend into them.