Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

JSON::Ext::Generator::State#allow_nan=

allow_nan=(enable)

This sets whether or not to serialize NaN, Infinity, and -Infinity

See also #allow_nan? #[]= #[] #array_nl also in 4.1 · 4.0