Say I have the following for storing in a localstorage
var storageObject = {};
storageObject.value = myvalue;
storageObject.timestamp = d.getTime();
localStorage.setItem(myref, JSON.stringify(storageObject));
How do I use the getItem to retreive the value?
Simply:
Or even:
https://developer.mozilla.org/en/DOM/Storage#localStorage
Edit to restore original object from JSON, simply
parseit: