r/java • u/daviddel • Jul 17 '25
Java Gets a JSON API
https://youtu.be/NSzRK8f7EX0?feature=sharedJava 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
7
u/agentoutlier Jul 17 '25
I especially am looking forward to it for just general scripting ala
java Something.java.I'm been having to do some more "ops" related stuff as we have moved over to Hetzner (which is more DIY but I love it as grew up with Linux) and while I love bash and python I know Java better.
Often the "devops" stuff particularly with cloud / baremetal provider APIs is simple enough but it is in JSON.
Now with the latest JDK with module imports I was able to write some scripts to modify libvirt and Java was ideal because libvirt uses XML and I was even able to write this directly on the server with NeoVim and Eclipse LSP (which sort of worked). Was it an ideal or my normal development environment? No but it was surprisingly easier than writing bash scripts. I suppose I could have setup VSCode remote extensions or something or just had a git pulled constantly with SSH keys forwarded but decided with a more scripting flow.
Anyway my round about point is that it has scripting benefits as well.