Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
Source Code
# File active_support/json/encoders/object.rb, line 3 def to_json(options = {}) ActiveSupport::JSON.encode(instance_values, options) end
Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
# File active_support/json/encoders/object.rb, line 3 def to_json(options = {}) ActiveSupport::JSON.encode(instance_values, options) end
<code/>and<pre/>for code samples.