turn json to object code example
Example 1: convert string to object javascript
var mystr = '{ "hello":"world" }' // NB: Has enclosing ""
var myobj = JSON.parse(mystr);
Example 2: how to convert json to javascript object
local storage JSON.parse