Download Latest Version v2.18.0 source code.tar.gz (888.3 kB)
Email in envelope

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

Home / v2.16.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-11-07 680 Bytes
v2.16.0 source code.tar.gz 2025-11-07 886.0 kB
v2.16.0 source code.zip 2025-11-07 927.4 kB
Totals: 3 Items   1.8 MB 0

What's Changed

  • Deprecate JSON::State#[] and JSON::State#[]=. Consider using JSON::Coder instead.
  • JSON::Coder now also yields to the block when encountering strings with invalid encoding.
  • Fix GeneratorError messages to be UTF-8 encoded.
  • Fix memory leak when Exception is raised, or throw is used during JSON generation.
  • Optimized floating point number parsing by integrating the ryu algorithm (thanks to Josef Šimánek).
  • Optimized numbers parsing using SWAR (thanks to Scott Myron).
  • Optimized parsing of pretty printed documents using SWAR (thanks to Scott Myron).

Full Changelog: https://github.com/ruby/json/compare/v2.15.2...v2.16.0

Source: README.md, updated 2025-11-07