title: Decode JSON with JQuery
body: <p>my explorations into jquery are proving a little frustrating.</p>
  
  <p>I am receiving the following Json back from the server.</p>
  
  <pre><code>{"status":"ok",
  "0":{"ID":"1","location":"location info"},
  "1":{"ID":"2","location":"location info"},
  "2":{"ID":"3","location":"location info"},
  ...etc
  });
  </code></pre>
  
  <p>I need to put all the objects except the status into an array.
   I achieved this in AS3 as follows, but don't seem to be able to get any where near using jquery.</p>
  
  <pre><code>public function ResultToArray(jsonString:String):Array
  {
  var jObj:Object = JSON.decode(jsonString);
  var objects:Array = [];
  for each(var obj:Object in jObj)
  {
      if(obj is String)break;
      objects.push(obj);
  }
  return objects;
  }
  </code></pre>
  
  <p>I would like to put each of the objects in an array.</p>
  
  <p>The following only loops over one object.</p>
  
  <pre><code>      $(data).each(function(index)
      {
      alert(data[index]["location"])  
      });
  </code></pre>
  
  <p>Please pardon my ignorance.
  If I could receive any advice It'd be much appreciated.</p>