I tried to merge using this way but it making two different keys of meta_information and meta_information.image
merchant = Object.assign(merchant, media_mode)
I have tried this way but its not working
var media_mode = {
"featured_media_square" : "square",
"featured_media_landscape" :"landscape",
"logo" : "a.png",
"meta_information.image" : "b.png"
}
var merchant = {meta_information : {image : ""}}
I want to get result like this
merchant = {
"featured_media_square" : "square",
"featured_media_landscape" : "landscape",
"logo" : "a.png",
"meta_information" : {"image" : "b.png"}
}