Methods

Class/Module Index [+]

Quicksearch

ActiveSupport::JSON::Backends::OkJson

Constants

ParseError

Public Instance Methods

decode(json) click to toggle source

Parses a JSON string or IO and convert it into an object

# File lib/active_support/json/backends/okjson.rb, line 608
def decode(json)
  if json.respond_to?(:read)
    json = json.read
  end
  data = ActiveSupport::OkJson.decode(json)
  if ActiveSupport.parse_json_times
    convert_dates_from(data)
  else
    data
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.