Java is exploring adding a built-in JSON API to the JDK, motivated by JSON's ubiquity and the JDK's 'batteries included' philosophy. The proposed API is intentionally minimal, focusing on parsing, traversal, and generation of JSON documents without replacing third-party libraries. It uses interfaces with hidden implementations (JsonValue, JsonArray, JsonObject, etc.) and is designed to work closely with Java's evolving pattern matching features. A prototype exists in the JDK sandbox repository and passes JSONTestSuite conformance tests. No JEP has been drafted yet, and the design is still being debated, particularly around its minimal API surface and reliance on future pattern matching capabilities.
Sort: