This method is deprecated or moved on the latest stable version.
The last existing version (v3.0.9) is shown here.
decode(json)
public
Parses a JSON string or IO and convert it into an object
# File activesupport/lib/active_support/json/backends/jsongem.rb, line 11
def decode(json)
if json.respond_to?(:read)
json = json.read
end
data = ::JSON.parse(json)
if ActiveSupport.parse_json_times
convert_dates_from(data)
else
data
end
end