I was wondering why does this happen?
I have an json object stored in var myObj:
var myObj = JSON.parse(fs.readFileSync(\'json/data.json\', \'utf8\')
If you use jQuery, then you can do this
var mobObj = jQuery.extend(true, {}, myObj);
else try this
var mobObj = Object.assign({}, myObj);