I am having the same problem. I tried use formula inside JSON array, but it is returning a error:
"array": "error: Access denied to method new.",
this = Array.new(var)
Access denied to method new.
Do you guys have any idea how to proceed?