Skip to main content

json_merge

Function json_merge 

Source
fn json_merge(base: &mut Value, patch: Value)
Expand description

Recursive JSON merge (RFC 7396 spirit).

Keys from patch overwrite keys in base. When both base[key] and patch[key] are objects, the merge recurses. Otherwise patch[key] replaces base[key].