It was a string since I was building the json string from scratch.
Meaning, in ruby you can't just "add" an integer to a string, and expect it to concatenate. Atleast I don't think you can.