method
as_json
v5.2.3 -
Show latest stable
- Class:
Object
as_json(options = nil)public
No documentation available.
# File activesupport/lib/active_support/core_ext/object/json.rb, line 52
def as_json(options = nil) #:nodoc:
if respond_to?(:to_hash)
to_hash.as_json(options)
else
instance_values.as_json(options)
end
end