You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
-
# java.util.json Backport for JDK 21
1
+
# java.util.json – Official JSON API Backport for Java 21
2
2
3
-
Early access to the unstable `java.util.json` API — taken from the OpenJDK jdk-sandbox “json” branch as of 2025-09-04.
3
+
Early access backport of the proposed `java.util.json` JDK API (from the OpenJDK jdk‑sandbox “json” branch) for use on Java 21+.
4
+
This project provides the standard JSON API for Java ahead of time: immutable JSON value types, parsing utilities, and examples aligned with a potential future JEP.
-**✅Enable early adoption**: Let developers try the unstable Java JSON patterns today on JDK 21+
49
54
-**✅API compatibility over performance**: Focus on matching the emerging "batteries included" API design rather than competing with existing JSON libraries on speed.
@@ -82,7 +87,7 @@ This is a simplified backport with the following changes from the original:
82
87
83
88
These vulnerabilities exist in the upstream OpenJDK sandbox implementation and are reported here for transparency.
84
89
85
-
## JSON Schema Validator
90
+
## JSON Schema Validator (2020-12)
86
91
87
92
By including a basic schema validator that demonstrates how to build a realistic feature out of the core API. To demonstrate the power of the core API, it follows Data Oriented Programming principles: it parses JSON Schema into an immutable structure of records, then for validation it parses the JSON to the generic structure and uses the thread-safe parsed schema as the model to validate the JSON being checked.
88
93
@@ -99,7 +104,7 @@ var result = schema.validate(
99
104
// result.valid() => true
100
105
```
101
106
102
-
Compatibility: we run the official 2020-12 JSON Schema Test Suite on verify; in strict mode it currently passes about 71% of applicable cases.
107
+
Compatibility: runs the official 2020‑12 JSON Schema Test Suite on `verify`; in strict mode it currently passes about 71% of applicable cases.
Copy file name to clipboardExpand all lines: json-java21-api-tracker/pom.xml
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
<packaging>jar</packaging>
15
15
16
16
<name>java.util.json Java21 Backport Upstream API Tracker</name>
17
+
<description>Compares the OpenJDK sandbox java.util.json API to this Java 21 backport and reports differences to maintain alignment with upstream.</description>
<description>Experimental JSON Schema 2020-12 validator built using the java.util.json Java 21 backport; includes integration tests running the official JSON Schema Test Suite.</description>
<description>Backport of the OpenJDK sandbox java.util.json API for Java 21+. Immutable JSON value types and parsing utilities aligned with the future JDK standard library.</description>
<description>A backport of the upcoming java.util.json API for Java 21+</description>
13
+
<description>Backport of the OpenJDK sandbox java.util.json API for Java 21+. Provides immutable JSON value types and parsing utilities aligned with a potential future JDK JSON API.</description>
0 commit comments