-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Oliver Drotbohm opened SPR-11891 and commented
Jackson's ObjectMapper
has a weird default setting to completely fail the deserialization if a single unknown property is encountered. This violates Postel's law as the server could still successfully create an instance of the expected type. Actually this kind of resilient behavior is why people might choose JSON over the rather schema dominated XML world.
I've filed a ticket for that issue in Jackson itself but I thought it might be worth taking the lead here. I know changing defaults is kind of a risky thing to do but as Brian Clozel indicated in the comments of said ticket, it would actually increase resilience of already existing code.
Affects: 4.0.5
Issue Links:
- Create builder for Jackson ObjectMapper [SPR-12243] #16857 Create builder for Jackson ObjectMapper ("depends on")
- @JsonIgnoreProperties(ignoreUnknown=false) is not working in Spring 4.2.8 and upper version [SPR-15008] #19575
@JsonIgnoreProperties
(ignoreUnknown=false) is not working in Spring 4.2.8 and upper version - Set Jackson DEFAULT_VIEW_INCLUSION property to false by default [SPR-12179] #16793 Set Jackson DEFAULT_VIEW_INCLUSION property to false by default
Referenced from: commits 42aef5f
1 votes, 6 watchers