jackson-databind icon indicating copy to clipboard operation
jackson-databind copied to clipboard

Fully document API changes made in 3.0

Open odrotbohm opened this issue 5 months ago • 9 comments

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 gone
  • JsonToken.FIELD_NAME is now JsonToken.PROPERTY_NAME I assume
  • PropertyNamingStrategyBase is gone. It had been deprecated before, but without recommendation what to use instead.
  • NamingBase.translate(String) is protected now
  • JsonGenerator.getOutputContext() apparently is ….streamWriteContext() now
  • JsonGenerator.getCurrentValue() apparently is ….currentValue() now
  • MapSerializer.construct(…) signature has changed completely
  • ObjectMapper.findMixInClassFor(Class) is gone
  • How do I tweak an existing ObjectMapper instance? I understand I can use JsonMapper.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

odrotbohm avatar May 14 '25 17:05 odrotbohm