JSFiddle - React, Tailwind, and code Playground
by soumyazyx
JavaScript
var whatever = [{
"key1" : { "text" : "text1","group" : "1" },
"key2" : { "text" : "text2","group" : "2" },
"key3" : { "text" : "text3","group" : "3" }
}];
console.log(whatever);
var str = '{"text":"text0","group":"0"}';
var obj = JSON.parse(str);
console.log(obj);
whatever[0].put("key0",obj);
console.log(whatever);