{"action":"created","issue":{"url":"https://api.github.com/repos/ugorji/go/issues/121","labels_url":"https://api.github.com/repos/ugorji/go/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/ugorji/go/issues/121/comments","events_url":"https://api.github.com/repos/ugorji/go/issues/121/events","html_url":"https://github.com/ugorji/go/pull/121","id":117908015,"number":121,"title":"Fix https://github.com/ugorji/go/issues/120","user":{"login":"agupt","id":2320076,"avatar_url":"https://avatars.githubusercontent.com/u/2320076?v=3","gravatar_id":"","url":"https://api.github.com/users/agupt","html_url":"https://github.com/agupt","followers_url":"https://api.github.com/users/agupt/followers","following_url":"https://api.github.com/users/agupt/following{/other_user}","gists_url":"https://api.github.com/users/agupt/gists{/gist_id}","starred_url":"https://api.github.com/users/agupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agupt/subscriptions","organizations_url":"https://api.github.com/users/agupt/orgs","repos_url":"https://api.github.com/users/agupt/repos","events_url":"https://api.github.com/users/agupt/events{/privacy}","received_events_url":"https://api.github.com/users/agupt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T21:07:20Z","updated_at":"2015-11-19T21:12:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ugorji/go/pulls/121","html_url":"https://github.com/ugorji/go/pull/121","diff_url":"https://github.com/ugorji/go/pull/121.diff","patch_url":"https://github.com/ugorji/go/pull/121.patch"},"body":"\r\nFix Build failure due unimplemented codec.jsonMarshaller\r\nIssue: #120 \r\nCode generated by codecgen fails to to build due to error \"type does not implement codec.jsonMarshaler\".\r\n\r\nTo Reproduce:\r\nbuild generate code for message\r\nimport \"encoding/json\"\r\ntype Foo struct {\r\nvalue json.RawMessage\r\n}\r\ntype Boo struct {\r\nvalue *json.RawMessage\r\n}\r\n\r\nBug:\r\nuse of value type to marshal json when pointer of given type implements codec.jsonMarshaler."},"comment":{"url":"https://api.github.com/repos/ugorji/go/issues/comments/158199519","html_url":"https://github.com/ugorji/go/pull/121#issuecomment-158199519","issue_url":"https://api.github.com/repos/ugorji/go/issues/121","id":158199519,"user":{"login":"agupt","id":2320076,"avatar_url":"https://avatars.githubusercontent.com/u/2320076?v=3","gravatar_id":"","url":"https://api.github.com/users/agupt","html_url":"https://github.com/agupt","followers_url":"https://api.github.com/users/agupt/followers","following_url":"https://api.github.com/users/agupt/following{/other_user}","gists_url":"https://api.github.com/users/agupt/gists{/gist_id}","starred_url":"https://api.github.com/users/agupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agupt/subscriptions","organizations_url":"https://api.github.com/users/agupt/orgs","repos_url":"https://api.github.com/users/agupt/repos","events_url":"https://api.github.com/users/agupt/events{/privacy}","received_events_url":"https://api.github.com/users/agupt/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T21:12:26Z","updated_at":"2015-11-19T21:12:26Z","body":"@ugorji we were facing this issue while trying to use codecgen for struct type which implemented JsonMarshalling. \r\nI made change locally and tested on our code. Didn't find a easy way to add test to this repository (any help is appreciated). Hopefully this pull request make sense. "}}