How to Parse Json in JavaScript Posted in Polyglotbits on 08 of Sep, 2015

As already stated in the post about how to write json in javascript, JSON is an integral part of the JavaScript language.

Thus it should come as no surprise that parsing json is equally easy.

var obj = JSON.parse('{"name":"Claus Witt","type":"Humanoid","tags":["awesome","lazy"]}');
console.log(obj['name']);