Skip to main content

merge_json_objects

Function merge_json_objects 

Source
pub fn merge_json_objects(base: &Value, overlay: &Value) -> Value
Expand description

Merge two JSON objects, with overlay keys taking precedence.

If either value is not an object, returns overlay.