How do I create response like following from elasticsearch-rails. I am getting response that starts with "[".
{
"data": [
{
"id": "1",
"type": "xxx",
"attributes": {
"name": "a1"
}
},
{
"id": "2",
"type": "yyy",
"attributes": {
"name": "a2"
}
},
{
"id": "3",
"type": "zzz",
"attributes": {
"name": "a3"
}
}
]
}