Im receiving from a webservice an string which has a json format. Using jQuery.parseJSON im creating a JSON object on client side (and i can access it without issues).
After i use localStorage.setItem to add my JSON object to browser local storage. My issue comes when i do a localStorage.getItem and i get an [object object] and i dont know how to access my object like a JSON object anymore.
Do you know whats the cause and any solution for this?
Thanks
Jose.
You can stringify your object before storing it, and later parse it when you retrieve it: