I have a RESTful web service that exposes collection resources (e.g., /data-centers) and single resources (e.g., /data-centers/chandler). The collection resource endpoints present a more summary view of the data, whereas the single resource endpoints are more detailed. For the collection resource endpoints, I want to use @JsonView to suppress fields not included in that view, as opposed to having them show up null. (Besides keeping the representation tidy, I'd like to distinguish unused fields from fields that have null values.) The single resource endpoints should show all fields.
So the JSON view varies from endpoint to endpoint, and it would be useful to have a clean way to communicate this to the ObjectMapper.