jackson-databind
jackson-databind copied to clipboard
Fully document API changes made in 3.0
Search before asking
- [x] I searched in the issues and found nothing similar.
Describe the bug
I am in the process of migrating a large code base containing an extensive set of custom Jackson (de)serializers and the experience is suboptimal. Types are gone, methods are moved or even removed without any hint, what implementors are supposed to do instead. Here's a (certainly non-exhaustive) shortlist of things I found:
StdScalarSerializer.getSchema(…)is goneJsonToken.FIELD_NAMEis nowJsonToken.PROPERTY_NAMEI assumePropertyNamingStrategyBaseis gone. It had been deprecated before, but without recommendation what to use instead.NamingBase.translate(String)is protected nowJsonGenerator.getOutputContext()apparently is….streamWriteContext()nowJsonGenerator.getCurrentValue()apparently is….currentValue()nowMapSerializer.construct(…)signature has changed completelyObjectMapper.findMixInClassFor(Class)is gone- How do I tweak an existing
ObjectMapperinstance? I understand I can useJsonMapper.builder()to create a new one, but I need to be able to configure existing instances. - What's a good replacement for
ObjectMapper.copy()? - The
MapperFeature.AUTO_DETECT_…constants are gone
Version Information
3.0 RC4
Reproduction
No response
Expected behavior
No response
Additional context
No response