I'm trying to use jBuilder to construct a custom array which is the needed structure for my javascript function. In this case their is only 1 object in the array. I am aware of the array!
method, but that requires the use of a collection. How do I force jbuilder to wrap an array around the object? Structure I'm looking for is shown below:
object = {
customArray : [{ someKey : 'somevalue' }]
}