Namespace
Methods
D
Constants
ParseError = ::ActiveSupport::OkJson::Error
 
Instance Public methods
decode(json)

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

# File activesupport/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