Skip to content

Introduce Jackson XML codecs #35752

@tschut

Description

@tschut

Spring Framework 7 migrated to Jackson 3. With this, Jackson2JsonDecoder got deprecated and is replaced by JacksonJsonDecoder.

However, contrary to what the name suggests, Jackson2JsonDecoder can be constructed with an arbitrary Jackson 2 ObjectMapper, which makes it support not only Json, but Xml (and other formats) just as well.

With the new JacksonJsonDecoder this is no longer possible, since it uses JsonMapper over ObjectMapper.

It would be nice (and ease migration to Spring Framework 7) if there was an equivalent JacksonXmlDecoder (and JacksonXmlEncoder obviously).

edit: some typos

Metadata

Metadata

Assignees

Labels

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