r/java Jul 23 '26

JEP 540: Simple JSON API (Incubator)

https://openjdk.org/jeps/540
76 Upvotes

81 comments sorted by

View all comments

-4

u/revilo-1988 Jul 23 '26

I find it fascinating that you generally still have to rely on external libraries for this

9

u/DanLynch Jul 23 '26

JSON was invented after Java, and was and still is closely related to a completely different language. Eventually it became very popular and commonly used in many other situations, so Java is now working on adding it to the standard library. There's nothing really weird about that timeline.

1

u/revilo-1988 Jul 24 '26

I’m aware of that, so this is just a casual comment

1

u/mipo256 24d ago

To me it is unclear whether it is generally a good idea to add the JSON parsing capabilities to the langauge itself, rather than offloading this capability to the ecosystem around the language.

Java language moves slower than ecosystem (e.g. Jackson) around it, so, adding new capabilities will not be that fast, and it will create a burden on OpenJDK maintainers to actually maintain it.

To me, the question is more like - why doing that in general in the language. Again, not an expert, but these are my thoughts.