-
Notifications
You must be signed in to change notification settings - Fork 350
Closed
Labels
Description
I'm trying to figure out why JSON is blowing up when generating the JSON for a big ole Hash of stuff. It raises a GeneratorError, but with no context so I can't easily tell where my bad data is. The line in question is here:
json/ext/json/ext/generator/generator.c
Line 912 in 55015fa
rb_raise(rb_path2class("JSON::GeneratorError"), "source sequence is illegal/malformed utf-8"); |
I would suggest this error include the relevant object at fault. Something like:
class JSON::GeneratorError
attr_reader :invalid_element
end