Towards a JSON API for the JDK
simon at 60hertz.com
simon at 60hertz.com
Mon Jul 28 20:17:09 UTC 2025
Hi All,
For anyone interested in experimenting with the proposed java.util.json API design, I've created a backport that works with JDK 21:
https://github.com/simbo1905/java.util.json.Java21
This is derived from the OpenJDK sandbox commit d22dc2ba (mid-July 2025). The backport:
- Works with JDK 21
- Focuses on API compatibility rather than performance
- Uses double-checked locking instead of StableValue
- Runs the JSON Test Suite
The repository includes examples showing the API in use with records, streams, and type conversions.
Regards,
Simon
More information about the core-libs-dev
mailing list