10

When a JSON structure returns back as:
{
"array_data" : {
"123" : {
"id" : 123,
"name" : "NAME"
},
"176" : {
"id" : 176,
"name" : "NAME"
},
"189" : {
"id" : 189,
"name" : "NAME"
}
}
}

Instead of:

{
"array_data": [
{
"id": 123,
"name": "NAME"
},
{
"id": 176,
"name": "NAME"
},
{
"id": 189,
"name": "NAME"
}
]
}

Comments
  • 3
    DevRant needs code highlighting badly.
  • 1
    And some built in lint highlighter just to make the examples pop
  • 1
    Looks good, can you move it over 1 pixel?
Add Comment