10

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,119
  • 11
  • 19

1 Answers1

19

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

Programmer Bruce
  • 64,977
  • 7
  • 99
  • 97