Skip to content

Refine Jackson 3 constructors to accept only JsonMapper instances for JSONΒ #35282

@sdeleuze

Description

@sdeleuze

Originally, Jackson 3 JSON converters, codecs et views constructors were taking an ObjectMapper parameters. I did that to be more lenient and ease migration. @wilkinsona suggested it would be cleaner to use strongly typed JsonMapper which extends ObjectMapper, in order to be consistent across formats supported by Jackson (XmlMapper, SmileMapper, CBORMapper) and avoid the confusion created by instances and beans of type ObjectMapper. I agreed with this proposal, it was too late in the M8 cycle so I had to revert it, but I will plan to merge it earlier in the M9 development cycle.

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions