{"action":"created","issue":{"url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/6","labels_url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/6/comments","events_url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/6/events","html_url":"https://github.com/nathanboktae/q-xhr/pull/6","id":65129334,"number":6,"title":"Add try/catch to JSON parsing code","user":{"login":"JackWink","id":476538,"avatar_url":"https://avatars.githubusercontent.com/u/476538?v=3","gravatar_id":"","url":"https://api.github.com/users/JackWink","html_url":"https://github.com/JackWink","followers_url":"https://api.github.com/users/JackWink/followers","following_url":"https://api.github.com/users/JackWink/following{/other_user}","gists_url":"https://api.github.com/users/JackWink/gists{/gist_id}","starred_url":"https://api.github.com/users/JackWink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JackWink/subscriptions","organizations_url":"https://api.github.com/users/JackWink/orgs","repos_url":"https://api.github.com/users/JackWink/repos","events_url":"https://api.github.com/users/JackWink/events{/privacy}","received_events_url":"https://api.github.com/users/JackWink/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-30T04:01:38Z","updated_at":"2015-04-20T18:26:13Z","closed_at":"2015-04-20T15:29:27Z","pull_request":{"url":"https://api.github.com/repos/nathanboktae/q-xhr/pulls/6","html_url":"https://github.com/nathanboktae/q-xhr/pull/6","diff_url":"https://github.com/nathanboktae/q-xhr/pull/6.diff","patch_url":"https://github.com/nathanboktae/q-xhr/pull/6.patch"},"body":"I have an API endpoint that returns a status code of 201, but no data when sent a POST. This triggers the error handler (JSON.parse throws an error if it's malformed). \r\n\r\nI believe the success handler should still be triggered since the HTTP request was successful, so this PR swallows any JSON parse errors."},"comment":{"url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/comments/94530644","html_url":"https://github.com/nathanboktae/q-xhr/pull/6#issuecomment-94530644","issue_url":"https://api.github.com/repos/nathanboktae/q-xhr/issues/6","id":94530644,"user":{"login":"nathanboktae","id":1989335,"avatar_url":"https://avatars.githubusercontent.com/u/1989335?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanboktae","html_url":"https://github.com/nathanboktae","followers_url":"https://api.github.com/users/nathanboktae/followers","following_url":"https://api.github.com/users/nathanboktae/following{/other_user}","gists_url":"https://api.github.com/users/nathanboktae/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanboktae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanboktae/subscriptions","organizations_url":"https://api.github.com/users/nathanboktae/orgs","repos_url":"https://api.github.com/users/nathanboktae/repos","events_url":"https://api.github.com/users/nathanboktae/events{/privacy}","received_events_url":"https://api.github.com/users/nathanboktae/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T18:26:13Z","updated_at":"2015-04-20T18:26:13Z","body":"Just did. Enjoy! Sorry I let this sit for a while."}}