title: how to create a hashtable of json objects in javascript?
body: <p>I want to create a hashtable of json objects, where each json object represents a user.</p>
  
  <p>I want to do this to sort of create a client side 'cache' of users.</p>
  
  <pre><code>User { ID: 234, name: 'john', ..);
  </code></pre>
  
  <p>So I can then reference things like this:</p>
  
  <p>if(userCache[userid] != null)
     alert(userCache[userid].ID);</p>
  
  <p>is this possible?</p>