I need to merge these two objects to get below output using JS. Thanks in advance and its ok to use jquery library if needed
var defaultOptions = {
count:3
};
var JSON = {
one:{
title:"something",
count:15
},
two:{
title:"another"
}
}
// expecting
var JSON = {
one:{
title:"something",
count:15
},
two:{
title:"another",
count:3
}
}