java

Json Object merge

A short technical note outlining the basic approach and applicable steps for Json Object merge.

You can use the jQuery.extends method to compare the two json objects you have.

jQuery.extend(true/false,object1,object2);

The first parameter, which can take the value true/false, if given true, will permanently add the difference properties on object2 to object1. If given false, it will combine the two and give the result.