I'm looking to convert key-value JSON code that looks like this :
{
"AK": "Arkansas",
"NY": "New York",
"CA": "California"
}
Into an array, where the key value from the JSON becomes one of the values in the object literals.
0 : {code :"AK", name:"Arkansas"},
1 : {code:"NY", name:"New York"},
2 : {code:"CA", name:"California}
Is there an easy way to do this?