{"action":"opened","issue":{"url":"https://api.github.com/repos/ylemoigne/mongo-jackson-codec/issues/8","repository_url":"https://api.github.com/repos/ylemoigne/mongo-jackson-codec","labels_url":"https://api.github.com/repos/ylemoigne/mongo-jackson-codec/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ylemoigne/mongo-jackson-codec/issues/8/comments","events_url":"https://api.github.com/repos/ylemoigne/mongo-jackson-codec/issues/8/events","html_url":"https://github.com/ylemoigne/mongo-jackson-codec/issues/8","id":154343016,"number":8,"title":"Object marshalling is failing during Object -> JSON conversion","user":{"login":"gdrte","id":2367122,"avatar_url":"https://avatars.githubusercontent.com/u/2367122?v=3","gravatar_id":"","url":"https://api.github.com/users/gdrte","html_url":"https://github.com/gdrte","followers_url":"https://api.github.com/users/gdrte/followers","following_url":"https://api.github.com/users/gdrte/following{/other_user}","gists_url":"https://api.github.com/users/gdrte/gists{/gist_id}","starred_url":"https://api.github.com/users/gdrte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdrte/subscriptions","organizations_url":"https://api.github.com/users/gdrte/orgs","repos_url":"https://api.github.com/users/gdrte/repos","events_url":"https://api.github.com/users/gdrte/events{/privacy}","received_events_url":"https://api.github.com/users/gdrte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T21:06:05Z","updated_at":"2016-05-11T21:06:05Z","closed_at":null,"body":"Spring Object mapper is failing during JSON marshalling saying \"BsonSerializer can only be used with BsonGenerator\". This is because of @Id annotation. The same serializer being used in JsonGenerator context. Please advise if there is any workaround. \r\n\r\nThanks"}}