My data currently looks like this:
{ 'Australia' : [ Array[2] ],
'Bangladesh' : [ Array[7] ],
etc...}
I could like to convert it to:
[ { 'country': 'Australia',
'count': 2 },
{ 'country' : 'Bangladesh',
'count': 7},
etc...
]
What is the easiest way to convert the data?