{"action":"created","issue":{"url":"https://api.github.com/repos/lloyd/yajl/issues/180","labels_url":"https://api.github.com/repos/lloyd/yajl/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/lloyd/yajl/issues/180/comments","events_url":"https://api.github.com/repos/lloyd/yajl/issues/180/events","html_url":"https://github.com/lloyd/yajl/issues/180","id":118691379,"number":180,"title":"incorrect set of white space characters","user":{"login":"eriksjolund","id":106877,"avatar_url":"https://avatars.githubusercontent.com/u/106877?v=3","gravatar_id":"","url":"https://api.github.com/users/eriksjolund","html_url":"https://github.com/eriksjolund","followers_url":"https://api.github.com/users/eriksjolund/followers","following_url":"https://api.github.com/users/eriksjolund/following{/other_user}","gists_url":"https://api.github.com/users/eriksjolund/gists{/gist_id}","starred_url":"https://api.github.com/users/eriksjolund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriksjolund/subscriptions","organizations_url":"https://api.github.com/users/eriksjolund/orgs","repos_url":"https://api.github.com/users/eriksjolund/repos","events_url":"https://api.github.com/users/eriksjolund/events{/privacy}","received_events_url":"https://api.github.com/users/eriksjolund/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-24T20:02:25Z","updated_at":"2015-12-13T19:19:45Z","closed_at":null,"body":"The JSON format specification\r\nhttps://tools.ietf.org/html/rfc7159\r\ntalks about these white space characters:\r\n\r\n      ws = *(\r\n              %x20 /              ; Space\r\n              %x09 /              ; Horizontal tab\r\n              %x0A /              ; Line feed or New line\r\n              %x0D )              ; Carriage return\r\n\r\nIt seems to me that yajl also allows for \\v (vertical tab) and \\f (form feed).\r\n\r\n    $ grep '\\\\v' yajl/src/yajl_lex.c \r\n                case '\\t': case '\\n': case '\\v': case '\\f': case '\\r': case ' ':\r\n    $\r\n    $ od -c /tmp/aa.txt \r\n    0000000  \\v  \\f       [      \\v  \\f           1       ]  \\n\r\n    0000015\r\n    $ cat /tmp/aa.txt|json_verify \r\n    JSON is valid\r\n    $ \r\n\r\nIt looks like a bug to me."},"comment":{"url":"https://api.github.com/repos/lloyd/yajl/issues/comments/164288990","html_url":"https://github.com/lloyd/yajl/issues/180#issuecomment-164288990","issue_url":"https://api.github.com/repos/lloyd/yajl/issues/180","id":164288990,"user":{"login":"lamont-granquist","id":454857,"avatar_url":"https://avatars.githubusercontent.com/u/454857?v=3","gravatar_id":"","url":"https://api.github.com/users/lamont-granquist","html_url":"https://github.com/lamont-granquist","followers_url":"https://api.github.com/users/lamont-granquist/followers","following_url":"https://api.github.com/users/lamont-granquist/following{/other_user}","gists_url":"https://api.github.com/users/lamont-granquist/gists{/gist_id}","starred_url":"https://api.github.com/users/lamont-granquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamont-granquist/subscriptions","organizations_url":"https://api.github.com/users/lamont-granquist/orgs","repos_url":"https://api.github.com/users/lamont-granquist/repos","events_url":"https://api.github.com/users/lamont-granquist/events{/privacy}","received_events_url":"https://api.github.com/users/lamont-granquist/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T19:19:44Z","updated_at":"2015-12-13T19:19:44Z","body":"strict mode would be fine, but ideally not by default.  since json is commonly used in network APIs, \"Be conservative in what you send, be liberal in what you accept\" should be the default behavior."}}