[−][src]Function serde_json_lodash::merge
pub fn merge(object: Value, source: Value) -> Value
https://lodash.com/docs/#merge
Examples:
use serde_json::json; use serde_json_lodash::merge; let object = json!({ "a": [{ "b": 2 }, { "d": 4 }] }); let other = json!({ "a": [{ "c": 3 }, { "e": 5 }] }); assert_eq!( merge(object, other), json!({ 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }) );