General

Profile

7stud (7 stud)

  • Login: 7stud
  • Registered on: 02/16/2017
  • Last sign in: 02/16/2017

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

02/16/2017

11:54 AM Ruby Bug #13217: JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
Martin Dürst wrote:
> RFC 7159 defines what's allowed as spaces between data. Please see the 'ws' production at https://tools.ietf.org/html/rfc7159#section-2, which lists only the following four:
> ...
Okay, thanks for the json lesson!
7stud (7 stud)
11:29 AM Ruby Bug #13217 (Rejected): JSON.parse() chokes on the UTF-8 character EM SPACE (U+2003, e2 80 83)
### Steps to reproduce
No error here:
```
require 'json'
json = %Q{
["a", "b"]
}
obj = JSON.parse(json)
```
But there is a UTF-8 space character called `EM SPACE` (U+2003, e2 80 83), which looks like a regular ascii...
7stud (7 stud)

Also available in: Atom