title: Setting an array of objects to sessionStorage
body: <p>Ok, so I have this JSON:</p>
  
  <pre><code>{"Status":"OK!","ListaPermessi":
  [{"IdPermesso":10,"Nome":"WIND_PARAMS"},
   {"IdPermesso":11,"Nome":"ADMIN_SERVER"},
   {"IdPermesso":21,"Nome":"REC"},
   {"IdPermesso":22,"Nome":"REC_DIST"},
   {"IdPermesso":23,"Nome":"REC_DIST_CR"}
  ]}
  </code></pre>
  
  <p>My code is:</p>
  
  <pre><code>var parsedResult = JSON.parse(result); // where result is the above JSON
  if (parsedResult.Status === "OK!") {
      // Set sessionStorage vars
      if (typeof(Storage) !== "undefined") {
          // localStorage &amp; sessionStorage support!
  
          sessionStorage.setItem("ListaPermessi", parsedResult.ListaPermessi);
      }
      else {
          // Sorry! No web storage support :(
      }
  }
  </code></pre>
  
  <p>But... this is not working properly! After the assignment, the sessionStorage seen from Firebug looks like this:</p>
  
  <p><strong>sessionStorage</strong>:</p>
  
  <ul>
  <li>ListaPermessi = "<em>[object Object],[object Object],[object Object],[object Object],[object Object]</em>"</li>
  </ul>
  
  <p>What is the proper way to assign an array of objects to a <strong>sessionStorage</strong> variable from javascript?</p>