Parses a JSON string or IO and converts it into an object
# File lib/active_support/json/backends/yaml.rb, line 11 11: def decode(json) 12: if json.respond_to?(:read) 13: json = json.read 14: end 15: YAML.load(convert_json_to_yaml(json)) 16: rescue ArgumentError 17: raise ParseError, "Invalid JSON string" 18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.