{"action":"opened","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-future-ideas/issues/8","repository_url":"https://api.github.com/repos/FasterXML/jackson-future-ideas","labels_url":"https://api.github.com/repos/FasterXML/jackson-future-ideas/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-future-ideas/issues/8/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-future-ideas/issues/8/events","html_url":"https://github.com/FasterXML/jackson-future-ideas/issues/8","id":154806761,"number":8,"title":"ObjectMapper Support for Dynamically Including/Excluding Properties during Serialization","user":{"login":"apjoseph","id":5465805,"avatar_url":"https://avatars.githubusercontent.com/u/5465805?v=3","gravatar_id":"","url":"https://api.github.com/users/apjoseph","html_url":"https://github.com/apjoseph","followers_url":"https://api.github.com/users/apjoseph/followers","following_url":"https://api.github.com/users/apjoseph/following{/other_user}","gists_url":"https://api.github.com/users/apjoseph/gists{/gist_id}","starred_url":"https://api.github.com/users/apjoseph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjoseph/subscriptions","organizations_url":"https://api.github.com/users/apjoseph/orgs","repos_url":"https://api.github.com/users/apjoseph/repos","events_url":"https://api.github.com/users/apjoseph/events{/privacy}","received_events_url":"https://api.github.com/users/apjoseph/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-13T21:47:52Z","updated_at":"2016-05-13T21:47:52Z","closed_at":null,"body":"It is quickly becoming a standard REST API practice to allow the method caller to dynamically choose which properties they want included/excluded from the returned JSON using dot notation. Obviously, mixins and views are inadequate for this purpose. Ideally, Jackson object mappers would have simple methods to support this out of the box :\r\n\r\n```\r\nList<String> includes =  ImmutableList.of(\"property1\",\"property2.subProperty\",\"property3.*\");\r\nList<String> excludes =  ImmutableList.of(\"property3.subProperty\");\r\n\r\nobjectMapper.writeValueAsStringWithSpecifiedFields(object,includes,excludes)\r\n```\r\n\r\nOr is this already possible via another strategy/module?\r\n"}}