9

The official docs on Jackson views at http://wiki.fasterxml.com/JacksonJsonViews says that you use this kind of line to exclude properties that are not explicitly mapped to a view.

objectMapper.configure(SerializationConfig.Feature.DEFAULT_VIEW_INCLUSION, false);

That is what I want to do -- but the line is not compiling for me. Anybody using this config directive?

jomofrodo
  • 1,013
  • 11
  • 17

1 Answers1

18

With the redesigns/refactorings of the 2.0 release, it got moved to MapperFeature.DEFAULT_VIEW_INCLUSION.

Programmer Bruce
  • 61,617
  • 6
  • 98
  • 96