I am using JBuilder Ruby, and I want to create a JSON hash that looks like this, as an end result:
"must" : {
"ids" : {
"values" : [1,2]
},
"range" : {
"visits" :
{
"gte" : 10
}
}
}
Keep in mind I have no existing array to iterate over. All the examples I've looked at assume I have an array. I don't. I want to create this JSON on the fly.