Here\'s what I am doing,
Get request to my web server, response is in json. Using jquery templates to render that callback data in my app. Pretty straightforward, works
You need to use JSON like so:
localStorage.setItem('foo', JSON.stringify(data));
And then parse it:
JSON.parse(localStorage.getItem('foo'))