I'm trying to configure a Jackson objectMapper to handle conversions from one Map-like DTO to an intermediate domain POJO, and from there to another Map-like DTO.
If I manually instantiate all the StdConverter<FromMap, POJO> and StdConverter<POJO, ToMap> it works as expected.
How can I configure the ObjectMapper with my custom converters?
Seems that converters can be registered using the StdDelegatingSerializer as follows:
SimpleModule module = new SimpleModule()
.addSerializer(String.class, new StdDelegatingSerializer(
new Converters.StringToAttributeValue()))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With