Is there a way to do a shallow copy all fields of obj1, but to do to deep clone of inner object deep_clone ?
let obj1 = {first: 'a', shallow_data: {a: 'a', b: 'b'}, deep_clone: {deep1: 1, deep2: 2} };
let obj2 = JSON.parse(JSON.stringify(obj1)); // full deep clone
so here I would like obj2 to be exactly the same as obj, except for deep_clone.
The motivation for this is that I have a big object and I need to improve performance and not to deep clone the entire object