Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

Jakarta EE standardised JSON-P and JSON-B, while most of the Java ecosystem chose Jackson. What lessons does this give you about standards versus de facto libraries when setting technology policy?

The lesson is that a standard gives portability, but adoption follows features, speed and how well a choice fits the main framework, and in JSON Jackson moved faster than the Jakarta specifications. A de facto library is not risk-free either: it can depend on a small group of maintainers, carry a security history and break compatibility between major versions, as Jackson 2 to 3 does. So technology policy should weigh community health, release cadence and framework fit rather than standard status alone, isolate choices behind schemas and adapters so a later switch is affordable, and be reviewed on a schedule because the right answer changes.

Why this question is asked

Every architecture group eventually writes a rule like 'prefer standards' or 'use what the ecosystem uses', and both can go wrong. JSON in Java is a clear case study, because the standard and the de facto library are easy to compare and the outcome is well known. Interviewers ask this question at senior levels to see whether we can draw general principles from history and turn them into a policy that ages well. In this answer, we will recap how JSON-P, JSON-B and Jackson arrived where they are, look at why the standard lost the adoption race, look at the risks that come with a de facto choice, and then turn those lessons into a policy and a review process.

1A Quick Recap of How We Got Here

Jackson appeared around 2009 as an independent, fast JSON library, and it grew quickly because it solved real problems: streaming, binding, annotations and modules for many formats. Spring adopted it early as the default for its HTTP message converters. JSON-P arrived in Java EE 7 in 2013 and JSON-B in Java EE 8 in 2017, both later moved to the Jakarta namespace. By the time JSON-B existed, most Java services had used Jackson for years, and Spring Boot, which came in 2014, made it the default for a whole generation of applications.

So the standard arrived late into a market that already had a good answer. That timing alone explains a lot, but not everything.

Standard versus de facto, in this case
FactorJakarta JSON-P / JSON-BJackson
Portability between runtimesstrong inside Jakarta EEworks anywhere, no specification
Time to marketJSON-B in 2017years earlier
Features and formatscore mapping onlymodules, mix-ins, YAML, CBOR and more
Framework fitJakarta EE and MicroProfileSpring Boot default
Change riskslow, compatible releasesmajor break from 2 to 3
Neither column wins every row; that is the point of the lesson.

2Why the Standard Lost the Adoption Race

A standard is written by a committee that must agree on behaviour that every implementation can support. That makes it careful and portable, but slow and conservative: features arrive only when several vendors can implement them. A library like Jackson can ship a feature when its maintainers think it is ready, and fix it in the next release if it is wrong.

Integration mattered even more than features. Developers do not pick a JSON library on its own; they pick a framework, and the framework picks the JSON library. Once Spring Boot defaulted to Jackson, every tutorial, every Stack Overflow answer and every starter assumed it, and the cost of choosing anything else rose with each one. The lesson for policy is that the main framework's choice carries enormous weight, often more than the standard's existence.

3The Risks a De Facto Library Brings

Choosing the winner does not remove risk; it changes its kind. The first risk is concentration: a widely used open source library may rest on a small group of maintainers, and its health depends on their time and funding. The second is security history. Jackson databind, for example, had many advisories about polymorphic deserialization, where enabling default typing on untrusted input allowed attackers to name classes to instantiate; the fix was a long series of blocklists and finally safer defaults. The third is major-version breaks. Jackson 3 moves core packages to tools.jackson, makes mappers immutable and changes several defaults, so every company on Jackson 2 now faces a migration it did not choose, timed by the library and by Spring Boot 4.

A standard API softens this last risk, because implementations can change under a stable API. That is a real advantage which the de facto choice gives up.

4Turning the Lessons Into Policy

A good policy does not say 'standards first' or 'popular first'. It names the factors and asks every choice to be judged on them: community health (number of active maintainers, sponsorship, response time to issues), release cadence and support policy, security track record and how quickly advisories are fixed, and fit with the main framework we have already chosen. Standard status is one factor among these, valuable mainly where we really need to move between runtimes.

The second part of the policy is about boundaries. Whatever we choose, we keep the choice from spreading into places that are expensive to change. The wire format lives in schemas, OpenAPI or JSON Schema, not in library annotations, so another library can produce the same JSON. Shared libraries keep their public types free of library-specific types. Library-specific configuration lives in one shared module per platform. With those boundaries, switching later is a project measured in weeks, not years.

Step throughHow a technology choice is made under the policy
  1. Does the main framework already choose?
    YesStart from its choiceNoCompare candidates on the factors
  2. Community, cadence, security and fit acceptable?
    YesAdopt, with an ownerNoLook at the next candidate
  3. Is the choice isolated behind schemas or adapters?
    YesRecord it with a review dateNoAdd the boundary first

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

Standard status enters as one factor in the second step, not as a rule of its own.

5Reviewing the Policy on a Schedule

Ecosystems shift. Gson was a common choice ten years ago and is now in maintenance mode; Android moved towards Kotlin-first libraries; JSON-B gained record support; Jackson made a major release. A decision that was right in 2018 may not be right today. So each recorded choice carries a review date, perhaps yearly for core libraries, and the review asks the same factor questions with fresh data: has the maintainer base changed, how did the last major advisory go, what does our framework now recommend?

The review is also where we decide that nothing should change, which is the usual outcome. Its value is that when change is needed, we notice it early and plan it, instead of discovering it during an incident.

6Follow-up questions

Does this mean standards are not worth following?

No. Standards are very valuable where portability is the actual need, such as code running on several application servers, or for wire formats, where RFCs like JSON, JSON Pointer and JSON Patch are what let different systems talk at all. The lesson is to value a standard for the portability it gives, not to treat standard status as quality.

How would you handle the Jackson 2 to 3 migration given this policy?

I would tie it to the Spring Boot 4 upgrade rather than run it separately, use the shared configuration module so most services only change a dependency, and rely on contract tests to prove the JSON did not change. Shared libraries without Jackson types in their APIs make this much easier, which is the boundary rule paying off.

Who owns these decisions?

A small architecture or platform group owns the policy and the review calendar, but each recorded choice should have a named owning team responsible for upgrades and advisory response. Without a named owner, a library becomes nobody's problem until it becomes everyone's.

7Conclusion

In this answer, we saw that Jakarta's JSON-P and JSON-B gave portability but arrived late and moved slowly, while Jackson won adoption through features, speed and its place as Spring Boot's default. We also saw that the de facto winner carries its own risks: maintainer concentration, security history and major-version breaks such as Jackson 2 to 3. The policy that follows weighs community health, cadence, security and framework fit, isolates every choice behind schemas and adapters, and is reviewed on a schedule because the ecosystem keeps changing.

What to say in the interviewAbout 100 seconds aloud

Open with

The JSON story shows that a standard does not guarantee adoption. JSON-P and JSON-B gave portability across Jakarta EE runtimes, but JSON-B arrived in 2017, years after Jackson, and by then Spring had made Jackson its default.

Then, if they want more

Developers choose a framework, and the framework chooses the JSON library, so framework fit and features beat standard status. But I would not conclude that the popular choice is always safe.

Jackson has had a long security history around polymorphic deserialization, it rests on a fairly small group of maintainers, and Jackson 3 is a real breaking change with new packages and immutable mappers, which every Jackson 2 shop now has to absorb. So when I set technology policy, I do not write 'standards first' or 'popular first'.

I ask every choice to be judged on community health, release cadence, security track record and fit with our main framework, and I count standard status as valuable mainly where we actually need portability.

The second rule is isolation: the wire format lives in OpenAPI or JSON Schema rather than in annotations, shared libraries keep library types out of their public APIs, and configuration lives in one shared module per platform, so if we need to switch later it costs weeks, not years.

Finally, each decision gets an owner and a review date, because ecosystems shift, as Gson's decline and Jackson 3 show, and I would rather notice that in a scheduled review than in an incident.

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 official documentation for the version you use. 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 "Jakarta EE standardised JSON-P and JSON-B, while most of the Java ecosystem chose...": https://scrivio-interview-library.netlify.app/java/json-libraries/5f53eb0b8b/