This was brought to my attention by @rwz in a pull request submitted to MultiJSON: intridea/multi_json#65
Judging from the error message, it appears this behavior is intentional:
TypeError: In :compat mode all Hash keys must be Strings or Symbols, not Fixnum.
I thought the idea behind :compat mode was to be fully compatible with the standard library JSON parser (which converts Fixnum keys to strings)?
What do you think?
Can do and it seems reasonable. I'll try to get it done in the next day or two.
In compat mode non-String keys are converted to Strings instead of ra…
…ising and error. (issue #52)
Faster than expected. Release 1.4.7 does the auto conversion to a string. Let me know if this doesn't take care of the problem.
This is awesome. Thanks for the super-quick fix!
Also, yeah, it solves the problem completely.
Great. Thanks for the feedback.