Help iterating through javascript object

I have a javascript object.
This contains a number of arrays (as per screenshot)

Each Object contains a Status and a Group, there is an object per status type.
The contents of this object is dynamically generated so sometimes it may return just one status type and group and sometimes it may contain, 2 (as per screenshot) 3, 4.. 10.

I need to iterate through this response and end up with the following please:

x number of arrays (this depends on the number of status' returned. (for the example I have screenshot I will base this on)
status1 = [['7/15/2015 8:08:00 AM', 1], ['7/15/2015 8:09:00 AM', 7], ['7/15/2015 8:10:00 AM', 8], ['7/15/2015 8:13:00 AM', 9]];
status2 = [['7/15/2015 8:09:00 AM', 1], ['7/15/2015 8:12:00 AM', 2]];

So the first array entry is the UpdatedOn for that status, followed by the count. But the count is incremental so instead of just displaying the count it adds it to itself each time to get the integer shown.
js-object.PNG
Al4ddin2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Was the last line of your output supposed to be
status2 = [['7/15/2015 8:09:00 AM', 1], ['7/15/2015 8:13:00 AM', 2]];

Open in new window

What happens to the status  code - do you loose that?
Do you specifically want each array to be assigned to a different variable name - can you not just have an array of arrays?

Here is some code that probably  comes close to what you are looking for
<script type="text/javascript">
var input = {
  0: {
    Group: [
      {Count: 1, UpdatedOn: '7/15/2015 8:08:00 AM'},
      {Count: 6, UpdatedOn: '7/15/2015 8:09:00 AM'},
      {Count: 1, UpdatedOn: '7/15/2015 8:10:00 AM'},
      {Count: 1, UpdatedOn: '7/15/2015 8:13:00 AM'},
    ],
    Status: 100
  },
  1: {
    Group: [
      {Count: 1, UpdatedOn: '7/15/2015 8:09:00 AM'},
      {Count: 1, UpdatedOn: '7/15/2015 8:13:00 AM'},
    ],
    Status: 103
  }
};
var res = [];
for(var k in input) {
  var total = 0;
  var tmp = [];
  for(var i in input[k].Group) {
    total += input[k].Group[i].Count;
    tmp.push([input[k].Group[i].UpdatedOn, total]);
  }
  res.push(tmp);
}
console.log(res);
</script>

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
hieloCommented:
Try:
for(var i=0; i<data.length; ++i)
{
	var temp = data[i];
	for(item in temp)
	{
		for(var j=0; j<item.Group.length;++j)
		{
			console.log( item.Group[j].Count, "; ", item.Group[j].UpdatedOn);
		}
	}
}

Open in new window

Julian HansenCommented:
Working sample here
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.