{"action":"closed","issue":{"url":"https://api.github.com/repos/jeroen/jsonlite/issues/175","repository_url":"https://api.github.com/repos/jeroen/jsonlite","labels_url":"https://api.github.com/repos/jeroen/jsonlite/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/jeroen/jsonlite/issues/175/comments","events_url":"https://api.github.com/repos/jeroen/jsonlite/issues/175/events","html_url":"https://github.com/jeroen/jsonlite/issues/175","id":219644102,"number":175,"title":"Escaping uncommon control characters","user":{"login":"jeroen","id":216319,"avatar_url":"https://avatars0.githubusercontent.com/u/216319?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroen","html_url":"https://github.com/jeroen","followers_url":"https://api.github.com/users/jeroen/followers","following_url":"https://api.github.com/users/jeroen/following{/other_user}","gists_url":"https://api.github.com/users/jeroen/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroen/subscriptions","organizations_url":"https://api.github.com/users/jeroen/orgs","repos_url":"https://api.github.com/users/jeroen/repos","events_url":"https://api.github.com/users/jeroen/events{/privacy}","received_events_url":"https://api.github.com/users/jeroen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-05T16:37:06Z","updated_at":"2017-04-07T14:08:35Z","closed_at":"2017-04-07T14:08:35Z","body":"Thomas [points out](https://github.com/IRkernel/IRkernel/issues/455) we need to escape all control characters, not just the common ones:\r\n\r\n```r\r\nx <- toJSON(\"foo\\x01\\x02bar\")\r\nfromJSON(x)\r\n```\r\n\r\nBasically this should work:\r\n\r\n```r\r\nstr <- rawToChar(as.raw(1:40))\r\nfromJSON(toJSON(x))\r\n```"}}
{"actor":{"display_login":"jeroen"}}