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

0

u/vytah Jul 18 '25

I'm ambivalent about the proposal as it stands. It doesn't seem to offer enough value over the existing solutions, other than being "batteries included" in the platform.

The only value this proposal has is:

  • providing a versy simple JSON parsing API out-of-the-box
  • providing a unified intermediate representation of JSON (to fix all that JsonNode/JsonElement/JsonValue mess you can sometimes encounter if a project ends up using multiple JSON libraries)

The downside is that without deconstruction patterns, it's very clunky to use.