Skip to content

Expose getConverter() in StdDelegatingSerializer for improved customizability #5313

@k163377

Description

@k163377

Is your feature request related to a problem? Please describe.

Currently, it is difficult to achieve customization of StdDelegatingSerializer using a specific Converter via BeanSerializerModifier#modifySerializer.
handledType is always Object, and accessing the Converter requires defining a dedicated subclass of StdDelegatingSerializer.

Personally, I think it might be acceptable to expose accessors to the Converter. What do you think?
It would be great if this were available starting in 2.20.1, but since it's a functional change, I expect it will be merged into 2.21.0.

Describe the solution you'd like

SSIA

https://github.com/FasterXML/jackson-databind/compare/2.x...k163377:delegating-serializer-generics?expand=1

Usage example

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions