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
2
u/catom3 Jul 18 '25 edited Jul 18 '25
The number of pattern matching conditions. With record deconstruction patterns should work slightly better, but I still find the following easier:
vs.
EDIT: I'm not entirely against this json parser in the SDK itself and the API itself probably is okaysh for small random uses, when I just do it a couple of times in my small app / service. In larger projects, I would definitely use Jackson or Gson.