JSFiddle - React, Tailwind, and code Playground
JavaScript
var obj = {};
var objstring = '{"one":"one","two":"two","three":"three"}'
console.log(objstring);
var jsonobj = $.parseJSON(objstring);
// second console output
console.log(jsonobj);
obj.key = jsonobj;
obj.key.test = "why does this affect jsonobj? (even in the second console output)";
console.log(jsonobj);