When executing this code ```ruby JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal) ``` an exception is raised unexpectedly. As soon as the exception is printed, the crash happens. See PR #321 for a test which reproduces the problem.