method

as_json

v4.2.7 - Show latest stable - Class: Object
as_json(options = nil)
public

No documentation available.

# File activesupport/lib/active_support/core_ext/object/json.rb, line 46
  def as_json(options = nil) #:nodoc:
    if respond_to?(:to_hash)
      to_hash.as_json(options)
    else
      instance_values.as_json(options)
    end
  end