aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/json/encoders/object.rb
blob: 6da0d1d1c18aace54e9bca5f834451356ac31986 (plain) (blame)
1
2
3
4
5
6
class Object
  # Dumps object in JSON (JavaScript Object Notation).  See www.json.org for more info.
  def to_json(options = {})
    ActiveSupport::JSON.encode(instance_values, options)
  end
end