json_pure 1.1.3 patch
Following up on a previous blog post about a JSON transformation issue, there is now a patched version of the json_pure 1.1.3 gem on GitHub.
The issue had to do with transforming Hashes and Arrays to JSON when they contain objects (classes) that have their own to_json methods.
A typical error message is:
See the README file and the commit history for generator.rb for more info.
No warranties or guarantees that this will work for other users and uses of the json_pure gem! See the GPL license.
Feedback is welcome!
lib/ruby/gems/1.8/gems/json_pure-1.1.3/lib/json/pure/generator.rb:251:in `to_json': wrong # of arguments(2 for 0) (ArgumentError)