{"action":"created","issue":{"url":"https://api.github.com/repos/gogo/letmegrpc/issues/13","labels_url":"https://api.github.com/repos/gogo/letmegrpc/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/gogo/letmegrpc/issues/13/comments","events_url":"https://api.github.com/repos/gogo/letmegrpc/issues/13/events","html_url":"https://github.com/gogo/letmegrpc/pull/13","id":117089594,"number":13,"title":"Use jsonpb for json unmarshalling","user":{"login":"GeertJohan","id":564501,"avatar_url":"https://avatars.githubusercontent.com/u/564501?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertJohan","html_url":"https://github.com/GeertJohan","followers_url":"https://api.github.com/users/GeertJohan/followers","following_url":"https://api.github.com/users/GeertJohan/following{/other_user}","gists_url":"https://api.github.com/users/GeertJohan/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertJohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertJohan/subscriptions","organizations_url":"https://api.github.com/users/GeertJohan/orgs","repos_url":"https://api.github.com/users/GeertJohan/repos","events_url":"https://api.github.com/users/GeertJohan/events{/privacy}","received_events_url":"https://api.github.com/users/GeertJohan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-16T10:08:00Z","updated_at":"2015-11-16T12:49:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gogo/letmegrpc/pulls/13","html_url":"https://github.com/gogo/letmegrpc/pull/13","diff_url":"https://github.com/gogo/letmegrpc/pull/13.diff","patch_url":"https://github.com/gogo/letmegrpc/pull/13.patch"},"body":"**work in progress**\r\n\r\nI've found a way to get oneof working (might also fix #12, but I haven't tested yet).\r\n\r\n1) Move to [jsonpb](https://github.com/golang/protobuf/tree/master/jsonpb) ([godoc](https://godoc.org/github.com/golang/protobuf/jsonpb))\r\n2) Use standard protobuf go generator instead of gogo, otherwise `jsonpb` won't detect the oneof fields. I'm not sure if using go_out instead of gogo_out breaks other things?? So far it seems to be working fine.\r\n3) Send only one field in the oneof object in json."},"comment":{"url":"https://api.github.com/repos/gogo/letmegrpc/issues/comments/157017857","html_url":"https://github.com/gogo/letmegrpc/pull/13#issuecomment-157017857","issue_url":"https://api.github.com/repos/gogo/letmegrpc/issues/13","id":157017857,"user":{"login":"GeertJohan","id":564501,"avatar_url":"https://avatars.githubusercontent.com/u/564501?v=3","gravatar_id":"","url":"https://api.github.com/users/GeertJohan","html_url":"https://github.com/GeertJohan","followers_url":"https://api.github.com/users/GeertJohan/followers","following_url":"https://api.github.com/users/GeertJohan/following{/other_user}","gists_url":"https://api.github.com/users/GeertJohan/gists{/gist_id}","starred_url":"https://api.github.com/users/GeertJohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeertJohan/subscriptions","organizations_url":"https://api.github.com/users/GeertJohan/orgs","repos_url":"https://api.github.com/users/GeertJohan/repos","events_url":"https://api.github.com/users/GeertJohan/events{/privacy}","received_events_url":"https://api.github.com/users/GeertJohan/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T12:49:35Z","updated_at":"2015-11-16T12:49:35Z","body":"Yes I'll add the commit for html/javascript to this PR. Opened this as a work-in-progress PR so you could see what direction I'm going and give help/feedback."}}