instance method to_json

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v4.0.13

Available in: v2.2.3 v2.3.18 v3.2.22.5 v4.0.13

Signature

to_json(options = {})

Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.

Parameters

options opt = {}
Source
# File activesupport/lib/active_support/json/encoders/object.rb, line 3
  def to_json(options = {})
    ActiveSupport::JSON.encode(instance_values, options)
  end

Defined in activesupport/lib/active_support/json/encoders/object.rb line 3 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Object

Type at least 2 characters to search.

↑↓ navigate · open · esc close