Skip to content

JsonSerialization does not load all available modules from the classpath #16295

Closed
@urferr

Description

Description

The ObjectMapper created provides only the default modules for serialization/deserialization, i.e. the module supporting serialization/deserialization for java datetime class is not loaded even if it is on the classpath.

This could be easily enhanced by adding
mapper.findAndRegisterModules();
in the static initializer for all the different ObjectMapper instances. Just a small change which would make life much easier.

Discussion

No response

Motivation

No response

Details

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions