Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ObjectMapper.setSerializationInclusion() to apply to content inclusion too #1444

Closed
cowtowncoder opened this issue Nov 8, 2016 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented Nov 8, 2016

(note: follow-up from #1442)

As of 2.8, method setSerializationInclusion() only sets "value inclusion" (inclusion criteria value itself; POJO, Collection, Map) but NOT to "content inclusion" (values of structured types like Collections, Maps and arrays). For 2.9 let's make same value be applied for both; if they need to differ, add new method:

setDefaultPropertyInclusion(JsonInclude.Include value)

which allows specifying different inclusion criteria as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant