Download Latest Version v2.21.0 source code.zip (1.0 MB)
Email in envelope

Get an email when there's a new version of JSON implementation for Ruby

Home / v2.21.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-07-12 497 Bytes
v2.21.0 source code.tar.gz 2026-07-12 934.1 kB
v2.21.0 source code.zip 2026-07-12 1.0 MB
Totals: 3 Items   2.0 MB 0

What's Changed

  • JSON.generate now accept a sort_keys option, which takes either a boolean or a block.
  • Added #empty? and #partial_value? methods on JSON::ResumableParser.
  • Numerous correctness and performance fixes for JSON::ResumableParser.
  • Avoid triggering Ruby's float out of range warning when parsing out of range numbers.
  • Declare C types with Ruby 4.1 RUBY_TYPED_THREAD_SAFE_FREE.

Full Changelog: https://github.com/ruby/json/compare/v2.20.0...v2.21.0

Source: README.md, updated 2026-07-12