module ActiveSupport::JSON
def self.encode(value, options = nil)
ActiveSupport::JSON.encode({ team: 'rails', players: '36' })
See http://www.json.org for more info.
Dumps objects in JSON (JavaScript Object Notation).
def self.encode(value, options = nil) Encoding.json_encoder.new(options).encode(value) end