Having trouble with DEFAULT_VIEW_INCLUSION setting in jackson views

Viewed 3921

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?

1 Answers
Related