{"action":"created","comment":{"url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/comments/35787928","id":35787928,"diff_hunk":"@@ -235,3 +235,20 @@ func (obj JsonWebSignature) FullSerialize() string {\n \n \treturn string(mustSerializeJSON(raw))\n }\n+\n+// MarshalJSON serializes the JWS to JSON.\n+func (obj JsonWebSignature) MarshalJSON() (result []byte, err error) {\n+\treturn []byte(obj.FullSerialize()), nil","path":"jws.go","position":7,"original_position":7,"commit_id":"74fefb4f5dff29a1b0b78f97a69fb40c4f9a93e0","original_commit_id":"74fefb4f5dff29a1b0b78f97a69fb40c4f9a93e0","user":{"login":"bifurcation","id":75597,"avatar_url":"https://avatars.githubusercontent.com/u/75597?v=3","gravatar_id":"","url":"https://api.github.com/users/bifurcation","html_url":"https://github.com/bifurcation","followers_url":"https://api.github.com/users/bifurcation/followers","following_url":"https://api.github.com/users/bifurcation/following{/other_user}","gists_url":"https://api.github.com/users/bifurcation/gists{/gist_id}","starred_url":"https://api.github.com/users/bifurcation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bifurcation/subscriptions","organizations_url":"https://api.github.com/users/bifurcation/orgs","repos_url":"https://api.github.com/users/bifurcation/repos","events_url":"https://api.github.com/users/bifurcation/events{/privacy}","received_events_url":"https://api.github.com/users/bifurcation/received_events","type":"User","site_admin":false},"body":"What's your point?  Do you think this needs plumbing through?","created_at":"2015-07-29T17:36:47Z","updated_at":"2015-07-29T17:36:47Z","html_url":"https://github.com/letsencrypt/go-jose/pull/2#discussion_r35787928","pull_request_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/comments/35787928"},"html":{"href":"https://github.com/letsencrypt/go-jose/pull/2#discussion_r35787928"},"pull_request":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2","id":41145642,"html_url":"https://github.com/letsencrypt/go-jose/pull/2","diff_url":"https://github.com/letsencrypt/go-jose/pull/2.diff","patch_url":"https://github.com/letsencrypt/go-jose/pull/2.patch","issue_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/2","number":2,"state":"open","locked":false,"title":"Add JSON marshal/unmarshal for JWS","user":{"login":"bifurcation","id":75597,"avatar_url":"https://avatars.githubusercontent.com/u/75597?v=3","gravatar_id":"","url":"https://api.github.com/users/bifurcation","html_url":"https://github.com/bifurcation","followers_url":"https://api.github.com/users/bifurcation/followers","following_url":"https://api.github.com/users/bifurcation/following{/other_user}","gists_url":"https://api.github.com/users/bifurcation/gists{/gist_id}","starred_url":"https://api.github.com/users/bifurcation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bifurcation/subscriptions","organizations_url":"https://api.github.com/users/bifurcation/orgs","repos_url":"https://api.github.com/users/bifurcation/repos","events_url":"https://api.github.com/users/bifurcation/events{/privacy}","received_events_url":"https://api.github.com/users/bifurcation/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-29T16:46:42Z","updated_at":"2015-07-29T17:36:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a558f26254c0648c8a89c3e32c157a7672eecf4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2/commits","review_comments_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2/comments","review_comment_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/2/comments","statuses_url":"https://api.github.com/repos/letsencrypt/go-jose/statuses/74fefb4f5dff29a1b0b78f97a69fb40c4f9a93e0","head":{"label":"letsencrypt:json","ref":"json","sha":"74fefb4f5dff29a1b0b78f97a69fb40c4f9a93e0","user":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"repo":{"id":39658104,"name":"go-jose","full_name":"letsencrypt/go-jose","owner":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/letsencrypt/go-jose","description":"Boulder's fork of Square's go-jose library. Contains a few changes needed for Boulder, pre upstreaming.","fork":true,"url":"https://api.github.com/repos/letsencrypt/go-jose","forks_url":"https://api.github.com/repos/letsencrypt/go-jose/forks","keys_url":"https://api.github.com/repos/letsencrypt/go-jose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letsencrypt/go-jose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letsencrypt/go-jose/teams","hooks_url":"https://api.github.com/repos/letsencrypt/go-jose/hooks","issue_events_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/events{/number}","events_url":"https://api.github.com/repos/letsencrypt/go-jose/events","assignees_url":"https://api.github.com/repos/letsencrypt/go-jose/assignees{/user}","branches_url":"https://api.github.com/repos/letsencrypt/go-jose/branches{/branch}","tags_url":"https://api.github.com/repos/letsencrypt/go-jose/tags","blobs_url":"https://api.github.com/repos/letsencrypt/go-jose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letsencrypt/go-jose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letsencrypt/go-jose/git/refs{/sha}","trees_url":"https://api.github.com/repos/letsencrypt/go-jose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letsencrypt/go-jose/statuses/{sha}","languages_url":"https://api.github.com/repos/letsencrypt/go-jose/languages","stargazers_url":"https://api.github.com/repos/letsencrypt/go-jose/stargazers","contributors_url":"https://api.github.com/repos/letsencrypt/go-jose/contributors","subscribers_url":"https://api.github.com/repos/letsencrypt/go-jose/subscribers","subscription_url":"https://api.github.com/repos/letsencrypt/go-jose/subscription","commits_url":"https://api.github.com/repos/letsencrypt/go-jose/commits{/sha}","git_commits_url":"https://api.github.com/repos/letsencrypt/go-jose/git/commits{/sha}","comments_url":"https://api.github.com/repos/letsencrypt/go-jose/comments{/number}","issue_comment_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/comments{/number}","contents_url":"https://api.github.com/repos/letsencrypt/go-jose/contents/{+path}","compare_url":"https://api.github.com/repos/letsencrypt/go-jose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letsencrypt/go-jose/merges","archive_url":"https://api.github.com/repos/letsencrypt/go-jose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letsencrypt/go-jose/downloads","issues_url":"https://api.github.com/repos/letsencrypt/go-jose/issues{/number}","pulls_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls{/number}","milestones_url":"https://api.github.com/repos/letsencrypt/go-jose/milestones{/number}","notifications_url":"https://api.github.com/repos/letsencrypt/go-jose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letsencrypt/go-jose/labels{/name}","releases_url":"https://api.github.com/repos/letsencrypt/go-jose/releases{/id}","created_at":"2015-07-24T21:15:16Z","updated_at":"2015-07-24T21:40:45Z","pushed_at":"2015-07-29T17:30:52Z","git_url":"git://github.com/letsencrypt/go-jose.git","ssh_url":"git@github.com:letsencrypt/go-jose.git","clone_url":"https://github.com/letsencrypt/go-jose.git","svn_url":"https://github.com/letsencrypt/go-jose","homepage":"https://godoc.org/github.com/square/go-jose","size":279,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"letsencrypt:master","ref":"master","sha":"1e94de308e9f6348370af5e409ce552aeb8f1019","user":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"repo":{"id":39658104,"name":"go-jose","full_name":"letsencrypt/go-jose","owner":{"login":"letsencrypt","id":9289019,"avatar_url":"https://avatars.githubusercontent.com/u/9289019?v=3","gravatar_id":"","url":"https://api.github.com/users/letsencrypt","html_url":"https://github.com/letsencrypt","followers_url":"https://api.github.com/users/letsencrypt/followers","following_url":"https://api.github.com/users/letsencrypt/following{/other_user}","gists_url":"https://api.github.com/users/letsencrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/letsencrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letsencrypt/subscriptions","organizations_url":"https://api.github.com/users/letsencrypt/orgs","repos_url":"https://api.github.com/users/letsencrypt/repos","events_url":"https://api.github.com/users/letsencrypt/events{/privacy}","received_events_url":"https://api.github.com/users/letsencrypt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/letsencrypt/go-jose","description":"Boulder's fork of Square's go-jose library. Contains a few changes needed for Boulder, pre upstreaming.","fork":true,"url":"https://api.github.com/repos/letsencrypt/go-jose","forks_url":"https://api.github.com/repos/letsencrypt/go-jose/forks","keys_url":"https://api.github.com/repos/letsencrypt/go-jose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letsencrypt/go-jose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letsencrypt/go-jose/teams","hooks_url":"https://api.github.com/repos/letsencrypt/go-jose/hooks","issue_events_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/events{/number}","events_url":"https://api.github.com/repos/letsencrypt/go-jose/events","assignees_url":"https://api.github.com/repos/letsencrypt/go-jose/assignees{/user}","branches_url":"https://api.github.com/repos/letsencrypt/go-jose/branches{/branch}","tags_url":"https://api.github.com/repos/letsencrypt/go-jose/tags","blobs_url":"https://api.github.com/repos/letsencrypt/go-jose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letsencrypt/go-jose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letsencrypt/go-jose/git/refs{/sha}","trees_url":"https://api.github.com/repos/letsencrypt/go-jose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letsencrypt/go-jose/statuses/{sha}","languages_url":"https://api.github.com/repos/letsencrypt/go-jose/languages","stargazers_url":"https://api.github.com/repos/letsencrypt/go-jose/stargazers","contributors_url":"https://api.github.com/repos/letsencrypt/go-jose/contributors","subscribers_url":"https://api.github.com/repos/letsencrypt/go-jose/subscribers","subscription_url":"https://api.github.com/repos/letsencrypt/go-jose/subscription","commits_url":"https://api.github.com/repos/letsencrypt/go-jose/commits{/sha}","git_commits_url":"https://api.github.com/repos/letsencrypt/go-jose/git/commits{/sha}","comments_url":"https://api.github.com/repos/letsencrypt/go-jose/comments{/number}","issue_comment_url":"https://api.github.com/repos/letsencrypt/go-jose/issues/comments{/number}","contents_url":"https://api.github.com/repos/letsencrypt/go-jose/contents/{+path}","compare_url":"https://api.github.com/repos/letsencrypt/go-jose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letsencrypt/go-jose/merges","archive_url":"https://api.github.com/repos/letsencrypt/go-jose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letsencrypt/go-jose/downloads","issues_url":"https://api.github.com/repos/letsencrypt/go-jose/issues{/number}","pulls_url":"https://api.github.com/repos/letsencrypt/go-jose/pulls{/number}","milestones_url":"https://api.github.com/repos/letsencrypt/go-jose/milestones{/number}","notifications_url":"https://api.github.com/repos/letsencrypt/go-jose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letsencrypt/go-jose/labels{/name}","releases_url":"https://api.github.com/repos/letsencrypt/go-jose/releases{/id}","created_at":"2015-07-24T21:15:16Z","updated_at":"2015-07-24T21:40:45Z","pushed_at":"2015-07-29T17:30:52Z","git_url":"git://github.com/letsencrypt/go-jose.git","ssh_url":"git@github.com:letsencrypt/go-jose.git","clone_url":"https://github.com/letsencrypt/go-jose.git","svn_url":"https://github.com/letsencrypt/go-jose","homepage":"https://godoc.org/github.com/square/go-jose","size":279,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2"},"html":{"href":"https://github.com/letsencrypt/go-jose/pull/2"},"issue":{"href":"https://api.github.com/repos/letsencrypt/go-jose/issues/2"},"comments":{"href":"https://api.github.com/repos/letsencrypt/go-jose/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/letsencrypt/go-jose/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/letsencrypt/go-jose/statuses/74fefb4f5dff29a1b0b78f97a69fb40c4f9a93e0"}}}}