title: How to store a (dictionary) object in JavaScript localStorage?
body: <p>I have a very simple dictionary . </p>
  
  <pre><code>var meta = {'foo':'1','moo':'2'}
  </code></pre>
  
  <p>I want to store this in the local storage and retrieve it. </p>
  
  <pre><code> window.localStorage.setItem("meta", meta);
   var meta1 = window.localStorage.getItem("meta");
   alert(meta1['foo']);
  </code></pre>
  
  <p>The above does not work. How can I do it?</p>