I currently have a stringify JSON object that is like this:
(Important, it's an object that I have to stringify and AFTER I need the length count)

I'm doing a call on a database which returns `result`.
I think wrap my result like so : `var myData = JSON.stringify(result);`

This produces the following, a lot more of it though:

```
myData =   {
    "0":[{"id": 50, "product_id": 'blah blah', etc}, {"id": 52, "product_id": 'blah blah', etc}, {"id": 50, "product_id": 'blah blah', etc}],
    "1":[{"id": 50, "product_id": 'blah blah', etc}, {"id": 52, "product_id": 'blah blah', etc}, {"id": 50, "product_id": 'blah blah', etc}],
    "2":[{"id": 50, "product_id": 'blah blah', etc}, {"id": 52, "product_id": 'blah blah', etc}, {"id": 50, "product_id": 'blah blah', etc}]
}

```

I've tried everything I can think of to get the length of the root level. In this example there would be 3. I need to know the length so I can run a loop through it selecting each one.

How can I do this?

I've tried for `(var data in myData)` and I've tried `Object.keys(myData).length`.

I've console logged `Ojbect.keys(myData).length` and the result is `9234`.

Nothing I've tried seems to work.