willcodeforfoo/json_builder — comment on commit 2ef5d5c0432b109937402534960e82b70bd6ae06
File: lib/json_builder/value.rb line 24
By dewski:

I actually ran into this same issue and tried to solve it with this but it wasn't working within the case statement. Check out my branch to see how I fixed this. I created a extensions file that extends classes adding `to_builder` methods to these classes, and will check if the `@value` responds to `to_builder`, if so, return that, if not just call `to_s`.