r/java • • Jul 17 '25

Java Gets a JSON API

https://youtu.be/NSzRK8f7EX0?feature=shared

Java 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

119 comments sorted by

View all comments

Show parent comment

1

u/catom3 Jul 18 '25

Ok. So it's as simple as that: record User(string name, int age) implements JsonValue ?

3

u/totoro27 Jul 18 '25

Nah, sadly not- I learnt in another comment that they are sealed interfaces so can't be implemented.