module ActiveSupport::JSON::Backends::Yaml
def decode(json)
def decode(json) if json.respond_to?(:read) json = json.read end YAML.load(convert_json_to_yaml(json)) rescue ArgumentError raise ParseError, "Invalid JSON string" end
def decode(json) if json.respond_to?(:read) json = json.read end YAML.load(convert_json_to_yaml(json)) rescue ArgumentError raise ParseError, "Invalid JSON string" end