Post

"Towards a JSON API for the JDK" New proposal on the core-libs-dev list for adding a basic JSON API to #Java. That would be a more than welcome addition, in particular considering the envisioned usage once member patterns will be available. Make it So 🤩! mail.openjdk.org/pipermail/co...

9 reposts42 likes

The quotes around "just" practically answer that question :) We had an opportunity to take that library into the JDK when it was created for Java EE, and declined then, because it was a poor fit for the JDK.

Expressing happy-path behavior is easy, imo; handling unhappy code paths w/ the least amount of boilerplate is the challenge.. e.g. when that "age" property turns out to be a string when it shoulda been a number, I want to make a useful error message (by way of exceptions or whatever) that says so