I want to encode the following JSON object using Jbuilder. How to do it?
"should" : [
{
"term" : { "tag" : "wow" }
},
{
"term" : { "tag" : "elasticsearch" }
}
]
I want to encode the following JSON object using Jbuilder. How to do it?
"should" : [
{
"term" : { "tag" : "wow" }
},
{
"term" : { "tag" : "elasticsearch" }
}
]
Try the child! method, e.g.
Which will output: