Method deprecated
This method is deprecated on the latest stable version of Rails.
The last existing version (v2.3.2) is shown here.
decode(json)
public
Converts a JSON string into a Ruby object.
Show source
def decode(json)
YAML.load(convert_json_to_yaml(json))
rescue ArgumentError => e
raise ParseError, "Invalid JSON string"
end