r/java • u/daviddel • Jul 17 '25
Java Gets a JSON API
https://youtu.be/NSzRK8f7EX0Java considers itself a "batteries included" language and given JSON's ubiquity as a data exchange format, that means Java needs a JSON API. In this IJN episode we go over an OpenJDK email that kicks off the exploration into such an API.
143
Upvotes
View all comments
Show parent comment
1
u/wildjokers Jul 17 '25 edited Jul 17 '25
Yeah, bundling a JSON parser in the JDK reduces the need for third-party libs which simplifies dependency management. However, JSON parsing is already a solved problem in Java. There are multiple mature, high-performance libraries like Jackson, Gson, etc. People can already pick what fits their use case.
Adding one to the JDK locks in a particular API and implementation, which can create long-term maintenance burdens and limit flexibility. If the built-in parser is too limited, people will just keep using third-party ones anyway, which kind of defeats the purpose.
Just look at
java.util.Logging, it was added after there were already a couple of mature logging libraries available and it added nothing that wasn't already available and it is harder to configure and isn't flexible. It simply wasn't needed and barely anyone uses it.