Having trouble setting DEFAULT_VIEW_INCLUSION in jackson modes

Jackson's white papers on http://wiki.fasterxml.com/JacksonJsonViews say you use this line to exclude properties that are not explicitly displayed on the View.

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

This is what I want to do, but the string does not compile for me. Anyone using this configuration directive?

+7
source share
1 answer

With the redesign / refactoring of version 2.0, he moved to MapperFeature.DEFAULT_VIEW_INCLUSION .

+16
source

All Articles