How do i get count of an unknown attribute in a JSON object without a loop
<p>eg.  </p>

<pre><code>var myObject = {
    'item_123': {
        'id': 1,
        'name': 'Some name'
    },
    'item_789': {
        'id': 2,
        'name': 'Another name'
    }
};
</code></pre>

<p>The number part of the item attribute/object is not known before hand since they are unique ids and are auto generated. Is it possible to get item count from myObject without looping through it?</p>
