add new element to existing json object

JavaScript
 json = JSON.stringify(jsObj);
 console.log(json)

Source

Also in JavaScript: