I just started working with node.js and json objects in my college course. One of our assignments this week was to create a few json objects and extract parts of the object
the solution is to use JSON.stringify as follows
JSON.stringify
var target=JSON.parse(JSON.stringify(source));