Skip to content

Instantly share code, notes, and snippets.

@wulfgarpro
Created October 31, 2011 03:38
Show Gist options
  • Save wulfgarpro/1326855 to your computer and use it in GitHub Desktop.
Save wulfgarpro/1326855 to your computer and use it in GitHub Desktop.
Setting visibility of fields for Jackson ObjectMapper
ObjectMapper mapper = new ObjectMapper();
VisibilityChecker<?> vc = mapper.getVisibilityChecker();
vc = vc.withFieldVisibility(Visibility.ANY);
mapper.setVisibilityChecker(vc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment