title: how to achieve this array
body: <p>I want to be able to save an array (if possible), so that I can get to an entry within it quickly and easily with a unique identifier, something like:</p>
  
  <p>array structure:</p>
  
  <pre><code>[
      1001:{loads of info},
      1002:{loads more info}
  ]
  </code></pre>
  
  <p>and to get values like:</p>
  
  <pre><code>var info_i_want = array.1001;
  </code></pre>
  
  <p>I have the 'loads of info' part already in a json object, just need to built this new array?
  I ask because at the moment I have to loop through each object in the array to check if its the one I want before I can do anything</p>