instance method
JSON::Coder#dump
dump(object) → String
dump(object, io) → io
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
Serialize the given object into a JSON document.