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