title: jQuery .getJSON return into array variable & json array manipulation
body: <p><br>
  is there any way I can get the return of $.getJSON into a variable array?<br>
  I know its async and out of scope, but I will use it inside ajax callback, I just need to get all the values first and check them against another array.</p>
  
  <p>Something like:</p>
  
  <pre><code>$.getJSON('itemManager.php?a=getItems', function(data){
      // itemArray = new Array(data);
      // idsArray = new Array(data.id);
      for (var i in someOtherArray){
          if($.inArray(i, idsArray) == -1){
              // do something...
              // get jason variable by id?
              // itemArray[i].someVariable
          }
      }
  }
  </code></pre>
  
  <p><strong>EDIT:</strong> JSON structure</p>
  
  <pre><code>[{"id":"786","user_id":"1","seller_id":"2","address_id":"1","time":1299852115,"publicComment":null,"personalComment":null},
  {"id":"787","user_id":"1","seller_id":"2","address_id":"1","time":1299852115,"publicComment":null,"personalComment":null},
  {"id":"785","user_id":"1","seller_id":"2","address_id":"1","time":1299852114,"publicComment":null,"personalComment":null},
  {"id":"784","user_id":"1","seller_id":"2","address_id":"1","time":1299852113,"publicComment":null,"personalComment":null},
  {"id":"783","user_id":"1","seller_id":"2","address_id":"1","time":1299852111,"publicComment":null,"personalComment":null}]
  </code></pre>
  
  <p>This is basically the idea. </p>
  
  <ul>
  <li>Get all the values</li>
  <li>Isolate the id values of JSON objects</li>
  <li>Loop another array</li>
  <li>Check if json id is inside the other array</li>
  <li>Access other json variables by id value</li>
  </ul>
  
  <p>There are various solutions here I guess, but I'm looking for something with minimal code.</p>