{"action":"created","issue":{"url":"https://api.github.com/repos/gogo/protobuf/issues/394","repository_url":"https://api.github.com/repos/gogo/protobuf","labels_url":"https://api.github.com/repos/gogo/protobuf/issues/394/labels{/name}","comments_url":"https://api.github.com/repos/gogo/protobuf/issues/394/comments","events_url":"https://api.github.com/repos/gogo/protobuf/issues/394/events","html_url":"https://github.com/gogo/protobuf/issues/394","id":305533763,"node_id":"MDU6SXNzdWUzMDU1MzM3NjM=","number":394,"title":"jsonPB marshaller with Enum as map value marshals enum to int","user":{"login":"espang","id":9658576,"node_id":"MDQ6VXNlcjk2NTg1NzY=","avatar_url":"https://avatars0.githubusercontent.com/u/9658576?v=4","gravatar_id":"","url":"https://api.github.com/users/espang","html_url":"https://github.com/espang","followers_url":"https://api.github.com/users/espang/followers","following_url":"https://api.github.com/users/espang/following{/other_user}","gists_url":"https://api.github.com/users/espang/gists{/gist_id}","starred_url":"https://api.github.com/users/espang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/espang/subscriptions","organizations_url":"https://api.github.com/users/espang/orgs","repos_url":"https://api.github.com/users/espang/repos","events_url":"https://api.github.com/users/espang/events{/privacy}","received_events_url":"https://api.github.com/users/espang/received_events","type":"User","site_admin":false},"labels":[{"id":739551307,"node_id":"MDU6TGFiZWw3Mzk1NTEzMDc=","url":"https://api.github.com/repos/gogo/protobuf/labels/depends-on-golangprotobuf","name":"depends-on-golangprotobuf","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-15T12:33:32Z","updated_at":"2018-10-08T13:19:37Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI found a inconsistency when I use the jsonpb marshaller with `EnumAsInt` not set. I have following messages defined in my proto file:\r\n\r\n```\r\nenum State {\r\n    state1 = 0;\r\n    state2 = 1;\r\n}\r\n\r\nmessage StatesResponse {\r\n    map<string, State> states = 1;\r\n}\r\n\r\nmessage StateResponse {\r\n    State state = 1;\r\n}\r\n```\r\n\r\nThe first one gets marshalled to:\r\n```\r\n{\"states\":{\"18777d46-48b0-4659-8b72-f8ca69ee6536\":1}}\r\n```\r\nthe second one to:\r\n```\r\n{\"state\":\"STATE2\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gogo/protobuf/issues/comments/427829584","html_url":"https://github.com/gogo/protobuf/issues/394#issuecomment-427829584","issue_url":"https://api.github.com/repos/gogo/protobuf/issues/394","id":427829584,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzgyOTU4NA==","user":{"login":"briansorahan","id":544737,"node_id":"MDQ6VXNlcjU0NDczNw==","avatar_url":"https://avatars1.githubusercontent.com/u/544737?v=4","gravatar_id":"","url":"https://api.github.com/users/briansorahan","html_url":"https://github.com/briansorahan","followers_url":"https://api.github.com/users/briansorahan/followers","following_url":"https://api.github.com/users/briansorahan/following{/other_user}","gists_url":"https://api.github.com/users/briansorahan/gists{/gist_id}","starred_url":"https://api.github.com/users/briansorahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briansorahan/subscriptions","organizations_url":"https://api.github.com/users/briansorahan/orgs","repos_url":"https://api.github.com/users/briansorahan/repos","events_url":"https://api.github.com/users/briansorahan/events{/privacy}","received_events_url":"https://api.github.com/users/briansorahan/received_events","type":"User","site_admin":false},"created_at":"2018-10-08T13:19:37Z","updated_at":"2018-10-08T13:19:37Z","author_association":"NONE","body":"@awalterschulze This would be really nice to have. Any ETA? I pulled gogo master in my GOPATH and ran a test and am seeing this exact issue.\r\nIt looks like https://github.com/golang/protobuf/pull/645 was merged July 7, do you cherry pick or merge their master to yours?"}}
{"actor":{"display_login":"briansorahan"}}