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\')
You are not cloning you are just refering the same with new variable name.
Create a new object out of existing and use it
var modObj = JSON.parse(JSON.stringify(myObj));