//merging two objects into new object var new_object = $.extend({}, object1, object2); //merge object2 into object1 $.extend(object1, object2);