Sha256: ecc08ca10d5cd2ee4fff54d5f6292baa78bee0ba9cb953b4bdcc9b57c914a8f5

Contents?: true

Size: 244 Bytes

Versions: 147

Compression:

Stored size: 244 Bytes

Contents

class Object
  # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
  def to_json(options = nil)
    ActiveSupport::JSON.encode(as_json(options))
  end

  def as_json(options = nil)
    instance_values
  end
end

Version data entries

147 entries across 116 versions & 14 rubygems

Version Path
radiant-1.0.0.rc1 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
abiquo-etk-0.5.3 vendor/activesupport-2.3.8/lib/active_support/json/encoders/object.rb
abiquo-etk-0.4.42 vendor/activesupport-2.3.8/lib/active_support/json/encoders/object.rb
webroar-0.5.0 src/admin_panel/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
activesupport-2.3.11 lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.2.4 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.2.2 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.2.1 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.2 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.9 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.8 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.7 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.6 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.5 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.4 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.3 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.2 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1.1 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiantcms-couchrest_model-0.1 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
abiquo-etk-0.4.33 vendor/activesupport-2.3.8/lib/active_support/json/encoders/object.rb