# File lib/crack/json.rb, line 25 def self.parse(json) args = [unescape(convert_json_to_yaml(json))] args << nil if SafeYAML::MULTI_ARGUMENT_YAML_LOAD args << { :whitelisted_tags => ['!ruby/regexp'] } SafeYAML.load(*args) rescue *parser_exceptions raise ParseError, "Invalid JSON string" end