JSFiddle - React, Tailwind, and code Playground
JavaScript
var myjson = '{\
"Response": {\
"FirstName": "John",\
"LastName": "Smith",\
"NickNames": {\
"NameOne": "Johnny",\
"NameTwo": "JohnS",\
"NameThree": "Smithy"\
},\
"Success": true,\
"Errors": []\
}\
}';
function reviver(key, val) {
if (key)
this[key.charAt(0).toLowerCase() + key.slice(1)] = val;
else
return val;
}
var parsed = JSON.parse(myjson, reviver);
document.write("<pre>" +
JSON.stringify(parsed, null, 4) +
"</pre>");