What's Changed
- Fix a potential crash in very specific circumstance if GC triggers during a call to
to_jsonwithout first invoking a user defined#to_jsonmethod.
Full Changelog: https://github.com/ruby/json/compare/v2.18.0...v2.18.1
Unclaimed project
Are you a maintainer of json? Claim this project to take control of your public changelog and roadmap.
to_json
without first invoking a user defined #to_json method.Full Changelog: https://github.com/ruby/json/compare/v2.18.0...v2.18.1
:allow_control_characters parser options, to allow JSON strings containing unescaped ASCII control characters (e.g. newlines).Full Changelog: https://github.com/ruby/json/compare/v2.17.1...v2.18.0
\uXX\uXX) that could cause an invalid string to be returned.Full Changelog: https://github.com/ruby/json/compare/v2.17.0...v2.17.1
JSON.load and JSON.unsafe_load to allow passing options as second argument.\", \\, \b, \f, \n, \r, \t and \u are valid JSON escapes.JSON::Coder to use the depth it was initialized with.to_json on the return val...JSON::State#[] and JSON::State#[]=. Consider using JSON::Coder instead.JSON::Coder now also yields to the block when encountering strings with invalid encoding.Exception is raised, or throw is used during JSON generation.