What's Changed
JSON.generatenow accept asort_keysoption, which takes either a boolean or a block.- Added
#empty?and#partial_value?methods onJSON::ResumableParser. - Numerous correctness and performance fixes for
JSON::ResumableParser. - Avoid triggering Ruby's
float out of rangewarning when parsing out of range numbers. - Declare C types with Ruby 4.1
RUBY_TYPED_THREAD_SAFE_FREE.
Full Changelog: v2.20.0...v2.21.0