matches YAML-formatted dates
# File lib/active_support/json/decoding.rb, line 11 def decode(json, options ={}) data = MultiJson.decode(json, options) if ActiveSupport.parse_json_times convert_dates_from(data) else data end end
Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
# File lib/active_support/json/encoding.rb, line 30 def self.encode(value, options = nil) Encoding::Encoder.new(options).encode(value) end
# File lib/active_support/json/decoding.rb, line 20 def engine MultiJson.engine end
# File lib/active_support/json/decoding.rb, line 25 def engine=(name) MultiJson.engine = name end
Generated with the Darkfish Rdoc Generator 2.