title: How to select the first property with unknown name and first item from array in JSON
body: <p>I actually have two questions, both are probably simple, but for some odd reason I cant figure it out... I've worked with JSON 100s of times before too! but here is the JSON in question:</p>
  
  <pre><code>{"69256":{
     "streaminfo":{
       "stream_ID":"1025",
       "sourceowner_ID":"2",
       "sourceowner_avatar":"http:\/\/content.nozzlmedia.com\/images\/sourceowner_avatar2.jpg",
       "sourceownertype_ID":"1",
       "stream_name":"Twitter",
       "streamtype":"Social media"
       "appsarray":[]
     },
     "item":{
        "headline":"Charboy",
        "main_image":"http:\/\/content.nozzlmedia.com\/images\/author_avatar173212.jpg",
        "summary":"ate a tomato and avocado for dinner...",
        "nozzl_captured":"2010-05-12 23:02:12",
        "geoarray":[{
           "state":"OR",
           "county":"Multnomah",
           "city":"Portland",
           "neighborhood":"Downtown",
           "zip":"97205",
           "street":"462 SW 11th Ave",
           "latitude":"45.5219",
           "longitude":"-122.682"
         }],
         "full_content":"ate a tomato and avocado for dinner tonight. 
                        such tasty foods. just enjoyable.",
         "body_text":"ate a tomato and avocado for dinner tonight. 
                        such tasty foods. just enjoyable.",
         "author_name":"Charboy",
         "author_avatar":"http:\/\/content.nozzlmedia.com\/images\/author_avatar173212.jpg",
         "fulltext_url":"http:\/\/twitter.com\/charboy\/statuses\/13889868936",
         "leftovers":{
             "twitter_id":"tag:search.twitter.com,2005:13889868936",
             "date":"2010-05-13T02:59:59Z",
             "location":"iPhone: 45.521866,-122.682262"
         },
         "wordarray":{
            "0":"ate",
            "1":"tomato",
            "2":"avocado",
            "3":"dinner",
            "4":"tonight",
            "5":"tasty",
            "6":"foods",
            "7":"just",
            "8":"enjoyable",
            "9":"Charboy",
            "11":"Twitter",
            "13":"state:OR",
            "14":"county:Multnomah, OR",
            "15":"city:Portland, OR",
            "16":"neighborhood:Downtown",
            "17":"zip:97205"
        }
     }
   }
  }
  </code></pre>
  
  <p><strong>Question 1:</strong>
  How do I loop through each item (69256) when the number is random? e.g. item 1 is <code>123</code>, item2 is <code>646</code>? Like, for example, a <em>normal</em> JSON feed would have something like:</p>
  
  <p><code>{'item':{'blah':'lorem'},'item':{'blah':'ipsum'}}</code> </p>
  
  <p>the JS would be like <code>console.log(item.blah)</code> to return <code>lorem</code> then <code>ipsum</code> in a loop</p>
  
  <p>How do I do it when i dont know the first item of the object?</p>
  
  <p><strong>Question 2:</strong> 
  How do I select items from the <code>geoarray</code> object? I tried:
  <code>json.test.item.geoarray.latitude</code></p>
  
  <p>and</p>
  
  <p><code>json.test.item.geoarray['latitude']</code></p>