Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

The move to Jackson 3 in Spring Boot 4 touches every service. How would you plan and sequence this change across a large fleet?

I would treat the Jackson 3 move as part of the Spring Boot 4 upgrade, not a separate project, and sequence it from the bottom up: first the shared Jackson configuration and custom serializers in the platform libraries, then a pilot on a few services that already have strong contract tests, then waves across the fleet. Throughout, we check the release notes for changed defaults and package names, and we track differences in JSON output per service with golden-file tests, fixing them before each wave rolls out.

Why this question is asked

A library upgrade that touches every service is mostly a coordination problem. The code changes in each service are often small, a few imports and a renamed customizer, but two hundred services times a small change, plus shared libraries that must move first, plus clients that notice any change in JSON, adds up to months of work if it is not planned. Interviewers ask this at a senior level to see how we sequence dependent work, where we put the risk, and how we know we are safe to continue. In this answer, we will look at what makes this upgrade risky, map the dependencies, plan the phases, set up the measurement, and decide how to run the waves.

1Where the Risk Really Is

Most of Jackson 3's changes are loud: new package names under tools.jackson, an immutable JsonMapper built through a builder, renamed serializer base types, and unchecked exceptions. Loud changes fail at compile time, so they cost effort but not incidents. The quiet changes are the dangerous ones: a different default for dates, property order or null handling changes the JSON a service emits without any error. A mobile app that parses a timestamp, or a partner that compares fields, breaks in production while every test in the service passes.

A second quiet risk is data at rest. JSON written by Jackson 2 lives in caches, databases and Kafka topics, and the upgraded services must still read it. So the plan has to measure output and test stored data, not only get everything to compile.

2Mapping the Dependencies First

Services do not use Jackson alone. They use it through Spring Boot, through the company's platform starter, through shared client libraries and event schemas, and through third-party modules. A service cannot move until everything it depends on has moved or can coexist. Because Jackson 3 uses new packages, Jackson 2 and 3 can sit on the same classpath, which helps, but a shared library that serializes events with its own Jackson 2 mapper will ignore the service's Jackson 3 configuration.

So the first deliverable is an inventory: which services define their own ObjectMapper, which have custom serializers, which shared libraries and third-party modules they use, and which store JSON. A dependency report and a code search for com.fasterxml.jackson outside the annotation package give this in a day. In a fleet of 200 services, a typical result is that 70 percent use only the platform defaults and plain DTOs, 25 percent have a few custom serializers, and 5 percent do something unusual, such as polymorphic types with default typing or their own mappers everywhere.

3The Phases

The platform libraries move first, because everything else waits for them. The platform team updates the shared Jackson starter to contribute JsonMapperBuilderCustomizer and Jackson 3 modules, rewrites the shared serializers for money, ids and dates, and releases it as part of the platform's Boot 4 baseline. Shared client libraries and event libraries follow. At the same time, we add golden-file tests to the platform: every shared type serialized under Jackson 2 and checked under Jackson 3.

Then a pilot: three to five services chosen because they have strong contract tests and owners who will report problems in detail, ideally covering the three groups from the inventory. The pilot finds the gaps in the release notes and in our tooling. We turn what they learn into a migration guide and, where possible, automated changes, such as an OpenRewrite recipe for the imports (check which recipes exist for your versions).

Finally the waves, of perhaps 20 to 30 services each, simplest group first. Each wave has a go or no-go check based on measured JSON differences.

Step throughSequencing the Jackson 3 move
  1. Inventory the fleetown mappers, custom serializers, stored JSON
  2. Golden-file tests on Jackson 2capture today's output first
  3. Platform starter and shared librariesJackson 3 customizers, modules, serializers
  4. Pilot 3 to 5 servicesstrong contract tests, engaged owners
  5. Unexplained JSON differences?
    YesFix in platform or config, re-run pilotNoWrite the guide and recipe
  6. Waves of 20 to 30 servicessimplest first, each with the Boot 4 upgrade
  7. Remove Jackson 2 supportafter the last wave

7 steps in order. Play them, or step through them one at a time.

Golden files come before any upgrade; without them we cannot tell a safe wave from a lucky one.

4Combining It With the Boot 4 Upgrade

It is tempting to split the work into two projects: Jackson first, then Boot. But Spring Boot 4 is built for Jackson 3, and Boot 3 is built for Jackson 2. Moving Jackson alone means fighting the framework's auto-configuration, and moving Boot while holding Jackson 2 means using a transition mode that will go away. Two migrations also mean two rounds of testing, two rounds of client communication and two sets of surprises.

So the Jackson change rides with the Boot 4 upgrade for each service. Services that must move to Boot 4 early for other reasons may use Boot 4's Jackson 2 support for a short time if the platform offers it, but that is an exception with an end date, not the plan.

5Measuring JSON Differences

The measure of success is simple: no unexplained difference in JSON. Every service in a wave runs its golden-file and contract tests before and after the upgrade, and the build reports the number of differing payloads. We collect those numbers on one page per wave. A difference is either fixed, usually by configuration in the platform starter so it is fixed for everyone, or accepted and announced to the clients of that API.

For traffic that tests do not cover, we can compare in production carefully: for a sample of requests, a service in the canary group serializes the response with both the old and the new configuration and logs a hash mismatch, never the data itself. A week of that on the pilot services gives confidence that the golden files are representative.

Wave readiness check
SignalGoNo-go
Golden-file differences0 unexplainedany unexplained
Contract tests (consumers)all greena consumer fails
Stored JSON sample read100 percent readableany read failure
Third-party modulesJackson 3 version existsmissing module
Canary error ratesame as baselinerise in 4xx or 5xx
Each wave starts only when every row is green for the previous one.

6Follow-up questions

Why start with platform libraries rather than a few services?

Because almost every service depends on them. If services moved first, each would write its own workaround for shared types such as money or ids, and the platform would later have to undo dozens of different fixes. Moving the platform first means every service inherits the same tested configuration.

How do we handle a team that cannot upgrade for months?

Jackson 2 and 3 can coexist, and the platform keeps the Jackson 2 version of the starter on maintenance for a published period. We agree a date with the team, help with the blocker, often a missing third-party module, and track it as a risk rather than holding back the whole fleet.

What do we tell API clients?

Ideally nothing changes for them, and the golden files prove it. Where a difference is accepted, such as a changed date format in one field, we announce it per API with an example before the wave, and for external APIs we keep the old behaviour by configuration until clients confirm.

7Conclusion

In this answer, we planned the Jackson 3 move across a large fleet as part of the Spring Boot 4 upgrade. The loud changes, new package names and an immutable builder-based mapper, are caught by the compiler; the quiet ones, changed defaults and stored data, need measurement. So we inventory the fleet, capture golden files on Jackson 2, move the platform starter and shared libraries first, pilot on services with strong contract tests, and run waves that only proceed when JSON differences are zero or explained, with release notes checked at every step.

What to say in the interviewAbout 90 seconds aloud

Open with

I'd see it as one change with the Boot 4 upgrade, because Boot 4 is built on Jackson 3 and doing them separately means two rounds of testing and communication.

Then, if they want more

The compile-time part is mechanical: packages move to tools.jackson while annotations stay, the mapper becomes an immutable JsonMapper, serializer types are renamed. The real risk is quiet: changed defaults, for example for dates, change the JSON a service emits without any error, and JSON stored in caches, databases and Kafka has to stay readable.

So first I'd inventory the fleet: who builds their own mappers, who has custom serializers, who stores JSON. Before anyone upgrades, every service adds golden-file tests that capture today's output. Then the platform team moves the shared starter and shared libraries, because everything depends on them, rewriting the serializers for shared types like money and ids.

Next a pilot on three to five services with strong contract tests and engaged owners; what they learn becomes a migration guide and, where possible, an automated recipe.

Then waves of twenty or thirty services, simplest first, and a wave only starts when the previous one has zero unexplained JSON differences, green consumer contract tests and all sampled stored data readable. Teams that are blocked get a dated exception rather than holding back everyone.

About this answer

Last updated
12 November 2026
Versions it names
Spring Boot 4
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "The move to Jackson 3 in Spring Boot 4 touches every service. How would you plan and...": https://scrivio-interview-library.netlify.app/spring-boot/json-serialization/7ea256fa78/