json = Jbuilder.new
json.target! # kaboom
@xxx what version of ruby did you use when this happened? I tried reproducing it using 1.9.3 and it seems fine.
Hm, it looks like the error only happens when Jbuilder is used in a Rails project. I also do not see the error when running straight Ruby, but do see it with 1.9.3-p372 when in a rails console.
what version of rails?
I just repeated it on 3.2.9
Thanks! I see where the issue is. I need to inspect more, but I think this is a rails issue.
And if you get the same error, please paste here the output of MultiJson.adapter