I am looking at an object with the following structure:
[
[
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
}
],
[
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
}
],
[
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
}
]
]
Just focusing on the structure of it, all I need to do with this object is to re-arrange it so that it ends up with the following structure:
[
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
},
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
},
{
"attr1":"1",
"attr2":"2",
"attr3":"3"
}
]
How can this be done in either pure Javascript or in core jQ library?