End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenStruct#to_json
to_json(*args)
ext/json/lib/json/add/ostruct.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/json/lib/json/add/ostruct.rb, line 28
def to_json(*args)
as_json.to_json(*args)
end
Stores class name (OpenStruct) with this struct’s values t as a JSON string.