how to convert javascript string to json object code example Example: how to convert json to javascript object local storage JSON.parse