instance method
JSON::Coder#generate
generate(object, io = nil)
ext/json/lib/json/common.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/json/lib/json/common.rb, line 1076
def dump(object, io = nil)
@state.generate(object, io)
end
Alias of #dump
Serialize the given object into a JSON document.