Open johnvoloski opened 10 years ago
Fixnum already has an implementation of the to_json method via its superclass Integer.
I cannot reproduce your problem. Can you provide more information like json and ruby versions, platforms, etc., and the value of JSON.state ? Does the problem crop up, if you only require json or do you need to require anything else?
I solved the problem implementing:
lib/json/pure/generator.rb:413