{"action":"closed","issue":{"url":"https://api.github.com/repos/devinus/poison/issues/89","repository_url":"https://api.github.com/repos/devinus/poison","labels_url":"https://api.github.com/repos/devinus/poison/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/devinus/poison/issues/89/comments","events_url":"https://api.github.com/repos/devinus/poison/issues/89/events","html_url":"https://github.com/devinus/poison/issues/89","id":171620055,"number":89,"title":"Poison.Parser.parse failure on weird surrogate pair","user":{"login":"vorce","id":983376,"avatar_url":"https://avatars.githubusercontent.com/u/983376?v=3","gravatar_id":"","url":"https://api.github.com/users/vorce","html_url":"https://github.com/vorce","followers_url":"https://api.github.com/users/vorce/followers","following_url":"https://api.github.com/users/vorce/following{/other_user}","gists_url":"https://api.github.com/users/vorce/gists{/gist_id}","starred_url":"https://api.github.com/users/vorce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorce/subscriptions","organizations_url":"https://api.github.com/users/vorce/orgs","repos_url":"https://api.github.com/users/vorce/repos","events_url":"https://api.github.com/users/vorce/events{/privacy}","received_events_url":"https://api.github.com/users/vorce/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-17T10:02:43Z","updated_at":"2016-10-02T07:49:51Z","closed_at":"2016-10-02T07:49:51Z","body":"I have some json data that may contain some wonky surrogate pairs. `jq` reports this for it:\r\n`parse error: Invalid \\uXXXX\\uXXXX surrogate pair escape at line L, column C`\r\n\r\nHere's how poison handles the same:\r\n\r\n    iex(3)> Poison.Parser.parse(\"{\\\"field\\\":\\\"\\\\uD83C\\\"}\")\r\n    ** (ArgumentError) argument error\r\n        lib/poison/parser.ex:229: Poison.Parser.string_escape/2\r\n        lib/poison/parser.ex:78: Poison.Parser.object_pairs/3\r\n        lib/poison/parser.ex:36: Poison.Parser.parse/2\r\n\r\nCryptic error aside, is there any way I could instruct poison to ignore these errors? Or tell it to not parse some parts? Do you have any suggestions on how to deal with this sort of data?\r\n\r\nI'm using 2.2.0 btw.\r\n\r\nThanks a bunch and kudos for an awesome library. ❤️ \r\n\r\nEdit: Hmm for some reason http://jsonlint.com/ can handle the same input..."}}
{"actor":{"display_login":"devinus"}}