title: Retrieving a property of a JSON object by index?
body: <p>Assuming this JSON object:  </p>
  
  <pre><code>var obj = {
      "set1": [1, 2, 3],
      "set2": [4, 5, 6, 7, 8],
      "set3": [9, 10, 11, 12]
  };
  </code></pre>
  
  <p>The "set2" property may be retrieved like so:</p>
  
  <pre><code>obj["set2"]
  </code></pre>
  
  <p>Is there a way to retrieve the "set2" property by index? It is the second property of the JSON object. This does not work (of course):  </p>
  
  <pre><code>obj[1]  
  </code></pre>
  
  <p>So, let's say that I want to retrieve the second property of the JSON object, but I don't know its name - how would I do it then?  </p>
  
  <p><em><strong>Update:</em></strong> Yes, I understand that objects are collections of unordered properties. But I don't think that the browsers mess with the "original" order defined by the JSON literal / string.</p>