How to merge two JSON objects but do not include properties that don't exist in the first Object?
Input
var obj1 = { x:'', y:{ a:'', b:'' } };
var obj2 = { x:1, y:{ a:1, b:2, c:3 }, z:'' };
Output
obj1 = { x:1, y:{ a:1, b:2 } };
ps. There is a method for Objects called preventExtensions but it appears to only block the immediate extension of properties and not deeper ones.