Actions
Bug #12951
closedJSON.parse allows invalid string escapes
Status:
Third Party's Issue
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Description
According to jq and jsonlint, the following JSON is invalid:
{"x":"\$"}
but JSON.parse will parse it without complaint:
irb(main):002:0> JSON.parse('{"x":"\$"}')
=> {"x"=>"$"}
Actions
Like0
Like0