{"action":"created","comment":{"url":"https://api.github.com/repos/groupon/gofer/pulls/comments/27130480","id":27130480,"diff_hunk":"@@ -33,17 +33,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n GOFER_PARSED = 'GOFER_PARSED_RESPONSE'\n \n @safeParseJSON = (str, res) ->\n+  return {} unless res?\n   res[GOFER_PARSED] = true\n \n-  data = error: null\n+  data = parseError: null\n   try\n     data.body =\n-      if 'string' == typeof str\n+      if 'string' == typeof str and str != ''","path":"src/json.coffee","position":null,"original_position":12,"commit_id":"81e0970c0eb831c0e795094bc2e6a948246f286d","original_commit_id":"66d1c6317ce034304ed84bb82bfe5da53bbffaaf","user":{"login":"khoomeister","id":681288,"avatar_url":"https://avatars.githubusercontent.com/u/681288?v=3","gravatar_id":"","url":"https://api.github.com/users/khoomeister","html_url":"https://github.com/khoomeister","followers_url":"https://api.github.com/users/khoomeister/followers","following_url":"https://api.github.com/users/khoomeister/following{/other_user}","gists_url":"https://api.github.com/users/khoomeister/gists{/gist_id}","starred_url":"https://api.github.com/users/khoomeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoomeister/subscriptions","organizations_url":"https://api.github.com/users/khoomeister/orgs","repos_url":"https://api.github.com/users/khoomeister/repos","events_url":"https://api.github.com/users/khoomeister/events{/privacy}","received_events_url":"https://api.github.com/users/khoomeister/received_events","type":"User","site_admin":false},"body":"OK makes sense - I've removed the empty string check.","created_at":"2015-03-25T15:18:15Z","updated_at":"2015-03-25T15:18:15Z","html_url":"https://github.com/groupon/gofer/pull/36#discussion_r27130480","pull_request_url":"https://api.github.com/repos/groupon/gofer/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/groupon/gofer/pulls/comments/27130480"},"html":{"href":"https://github.com/groupon/gofer/pull/36#discussion_r27130480"},"pull_request":{"href":"https://api.github.com/repos/groupon/gofer/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/groupon/gofer/pulls/36","id":31877056,"html_url":"https://github.com/groupon/gofer/pull/36","diff_url":"https://github.com/groupon/gofer/pull/36.diff","patch_url":"https://github.com/groupon/gofer/pull/36.patch","issue_url":"https://api.github.com/repos/groupon/gofer/issues/36","number":36,"state":"open","locked":false,"title":"fix silenced JSON parsing errors","user":{"login":"khoomeister","id":681288,"avatar_url":"https://avatars.githubusercontent.com/u/681288?v=3","gravatar_id":"","url":"https://api.github.com/users/khoomeister","html_url":"https://github.com/khoomeister","followers_url":"https://api.github.com/users/khoomeister/followers","following_url":"https://api.github.com/users/khoomeister/following{/other_user}","gists_url":"https://api.github.com/users/khoomeister/gists{/gist_id}","starred_url":"https://api.github.com/users/khoomeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khoomeister/subscriptions","organizations_url":"https://api.github.com/users/khoomeister/orgs","repos_url":"https://api.github.com/users/khoomeister/repos","events_url":"https://api.github.com/users/khoomeister/events{/privacy}","received_events_url":"https://api.github.com/users/khoomeister/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-24T22:32:57Z","updated_at":"2015-03-25T15:18:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"904af1baea8f35170a0ec78d4292225d6f534b0f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupon/gofer/pulls/36/commits","review_comments_url":"https://api.github.com/repos/groupon/gofer/pulls/36/comments","review_comment_url":"https://api.github.com/repos/groupon/gofer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/groupon/gofer/issues/36/comments","statuses_url":"https://api.github.com/repos/groupon/gofer/statuses/81e0970c0eb831c0e795094bc2e6a948246f286d","head":{"label":"groupon:ck-fix-json-errors","ref":"ck-fix-json-errors","sha":"81e0970c0eb831c0e795094bc2e6a948246f286d","user":{"login":"groupon","id":206233,"avatar_url":"https://avatars.githubusercontent.com/u/206233?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon","html_url":"https://github.com/groupon","followers_url":"https://api.github.com/users/groupon/followers","following_url":"https://api.github.com/users/groupon/following{/other_user}","gists_url":"https://api.github.com/users/groupon/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon/subscriptions","organizations_url":"https://api.github.com/users/groupon/orgs","repos_url":"https://api.github.com/users/groupon/repos","events_url":"https://api.github.com/users/groupon/events{/privacy}","received_events_url":"https://api.github.com/users/groupon/received_events","type":"Organization","site_admin":false},"repo":{"id":21710399,"name":"gofer","full_name":"groupon/gofer","owner":{"login":"groupon","id":206233,"avatar_url":"https://avatars.githubusercontent.com/u/206233?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon","html_url":"https://github.com/groupon","followers_url":"https://api.github.com/users/groupon/followers","following_url":"https://api.github.com/users/groupon/following{/other_user}","gists_url":"https://api.github.com/users/groupon/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon/subscriptions","organizations_url":"https://api.github.com/users/groupon/orgs","repos_url":"https://api.github.com/users/groupon/repos","events_url":"https://api.github.com/users/groupon/events{/privacy}","received_events_url":"https://api.github.com/users/groupon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupon/gofer","description":"A general purpose service client library for node.js","fork":false,"url":"https://api.github.com/repos/groupon/gofer","forks_url":"https://api.github.com/repos/groupon/gofer/forks","keys_url":"https://api.github.com/repos/groupon/gofer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupon/gofer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupon/gofer/teams","hooks_url":"https://api.github.com/repos/groupon/gofer/hooks","issue_events_url":"https://api.github.com/repos/groupon/gofer/issues/events{/number}","events_url":"https://api.github.com/repos/groupon/gofer/events","assignees_url":"https://api.github.com/repos/groupon/gofer/assignees{/user}","branches_url":"https://api.github.com/repos/groupon/gofer/branches{/branch}","tags_url":"https://api.github.com/repos/groupon/gofer/tags","blobs_url":"https://api.github.com/repos/groupon/gofer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupon/gofer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupon/gofer/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupon/gofer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupon/gofer/statuses/{sha}","languages_url":"https://api.github.com/repos/groupon/gofer/languages","stargazers_url":"https://api.github.com/repos/groupon/gofer/stargazers","contributors_url":"https://api.github.com/repos/groupon/gofer/contributors","subscribers_url":"https://api.github.com/repos/groupon/gofer/subscribers","subscription_url":"https://api.github.com/repos/groupon/gofer/subscription","commits_url":"https://api.github.com/repos/groupon/gofer/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupon/gofer/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupon/gofer/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupon/gofer/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupon/gofer/contents/{+path}","compare_url":"https://api.github.com/repos/groupon/gofer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupon/gofer/merges","archive_url":"https://api.github.com/repos/groupon/gofer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupon/gofer/downloads","issues_url":"https://api.github.com/repos/groupon/gofer/issues{/number}","pulls_url":"https://api.github.com/repos/groupon/gofer/pulls{/number}","milestones_url":"https://api.github.com/repos/groupon/gofer/milestones{/number}","notifications_url":"https://api.github.com/repos/groupon/gofer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupon/gofer/labels{/name}","releases_url":"https://api.github.com/repos/groupon/gofer/releases{/id}","created_at":"2014-07-10T21:08:31Z","updated_at":"2015-03-16T16:13:45Z","pushed_at":"2015-03-25T15:17:35Z","git_url":"git://github.com/groupon/gofer.git","ssh_url":"git@github.com:groupon/gofer.git","clone_url":"https://github.com/groupon/gofer.git","svn_url":"https://github.com/groupon/gofer","homepage":null,"size":872,"stargazers_count":30,"watchers_count":30,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":30,"default_branch":"master"}},"base":{"label":"groupon:master","ref":"master","sha":"8c786f588b796b110186c56e52b27f2ce8f9234e","user":{"login":"groupon","id":206233,"avatar_url":"https://avatars.githubusercontent.com/u/206233?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon","html_url":"https://github.com/groupon","followers_url":"https://api.github.com/users/groupon/followers","following_url":"https://api.github.com/users/groupon/following{/other_user}","gists_url":"https://api.github.com/users/groupon/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon/subscriptions","organizations_url":"https://api.github.com/users/groupon/orgs","repos_url":"https://api.github.com/users/groupon/repos","events_url":"https://api.github.com/users/groupon/events{/privacy}","received_events_url":"https://api.github.com/users/groupon/received_events","type":"Organization","site_admin":false},"repo":{"id":21710399,"name":"gofer","full_name":"groupon/gofer","owner":{"login":"groupon","id":206233,"avatar_url":"https://avatars.githubusercontent.com/u/206233?v=3","gravatar_id":"","url":"https://api.github.com/users/groupon","html_url":"https://github.com/groupon","followers_url":"https://api.github.com/users/groupon/followers","following_url":"https://api.github.com/users/groupon/following{/other_user}","gists_url":"https://api.github.com/users/groupon/gists{/gist_id}","starred_url":"https://api.github.com/users/groupon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupon/subscriptions","organizations_url":"https://api.github.com/users/groupon/orgs","repos_url":"https://api.github.com/users/groupon/repos","events_url":"https://api.github.com/users/groupon/events{/privacy}","received_events_url":"https://api.github.com/users/groupon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupon/gofer","description":"A general purpose service client library for node.js","fork":false,"url":"https://api.github.com/repos/groupon/gofer","forks_url":"https://api.github.com/repos/groupon/gofer/forks","keys_url":"https://api.github.com/repos/groupon/gofer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupon/gofer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupon/gofer/teams","hooks_url":"https://api.github.com/repos/groupon/gofer/hooks","issue_events_url":"https://api.github.com/repos/groupon/gofer/issues/events{/number}","events_url":"https://api.github.com/repos/groupon/gofer/events","assignees_url":"https://api.github.com/repos/groupon/gofer/assignees{/user}","branches_url":"https://api.github.com/repos/groupon/gofer/branches{/branch}","tags_url":"https://api.github.com/repos/groupon/gofer/tags","blobs_url":"https://api.github.com/repos/groupon/gofer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupon/gofer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupon/gofer/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupon/gofer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupon/gofer/statuses/{sha}","languages_url":"https://api.github.com/repos/groupon/gofer/languages","stargazers_url":"https://api.github.com/repos/groupon/gofer/stargazers","contributors_url":"https://api.github.com/repos/groupon/gofer/contributors","subscribers_url":"https://api.github.com/repos/groupon/gofer/subscribers","subscription_url":"https://api.github.com/repos/groupon/gofer/subscription","commits_url":"https://api.github.com/repos/groupon/gofer/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupon/gofer/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupon/gofer/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupon/gofer/issues/comments{/number}","contents_url":"https://api.github.com/repos/groupon/gofer/contents/{+path}","compare_url":"https://api.github.com/repos/groupon/gofer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupon/gofer/merges","archive_url":"https://api.github.com/repos/groupon/gofer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupon/gofer/downloads","issues_url":"https://api.github.com/repos/groupon/gofer/issues{/number}","pulls_url":"https://api.github.com/repos/groupon/gofer/pulls{/number}","milestones_url":"https://api.github.com/repos/groupon/gofer/milestones{/number}","notifications_url":"https://api.github.com/repos/groupon/gofer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupon/gofer/labels{/name}","releases_url":"https://api.github.com/repos/groupon/gofer/releases{/id}","created_at":"2014-07-10T21:08:31Z","updated_at":"2015-03-16T16:13:45Z","pushed_at":"2015-03-25T15:17:35Z","git_url":"git://github.com/groupon/gofer.git","ssh_url":"git@github.com:groupon/gofer.git","clone_url":"https://github.com/groupon/gofer.git","svn_url":"https://github.com/groupon/gofer","homepage":null,"size":872,"stargazers_count":30,"watchers_count":30,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupon/gofer/pulls/36"},"html":{"href":"https://github.com/groupon/gofer/pull/36"},"issue":{"href":"https://api.github.com/repos/groupon/gofer/issues/36"},"comments":{"href":"https://api.github.com/repos/groupon/gofer/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/groupon/gofer/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/groupon/gofer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/groupon/gofer/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/groupon/gofer/statuses/81e0970c0eb831c0e795094bc2e6a948246f286d"}}}}