End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Range#to_json
to_json(*args)
ext/json/lib/json/add/range.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/json/lib/json/add/range.rb, line 26
def to_json(*args)
as_json.to_json(*args)
end
Stores class name (Range) with JSON array of arguments a which include first (integer), last (integer), and exclude_end? (boolean) as JSON string.