Object
# File lib/webmock/util/json.rb, line 6 def self.parse(json) YAML.load(unescape(convert_json_to_yaml(json))) rescue ArgumentError raise ParseError, "Invalid JSON string" end
# File lib/webmock/util/json.rb, line 13 def self.unescape(str) str.gsub(/\\u([0-9a-f]{4})/) { [$1.hex].pack("U") } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.