On Fri, 21 Aug 2026 20:23:59 GMT, Naoto Sato <[email protected]> wrote:

>> This PR implements [JEP 540: Simple JSON API 
>> (Incubator)](https://openjdk.org/jeps/540).
>> 
>> It adds the `jdk.incubator.json` module which provides APIs for reading and 
>> writing JSON documents as specified by [RFC 
>> 8259](https://datatracker.ietf.org/doc/html/rfc8259). This is an incubating 
>> API.
>> 
>> API documentation: 
>> https://cr.openjdk.org/~naoto/json/javadoc/api/jdk.incubator.json/module-summary.html
>> Co-authored-by: Justin Lu 
>> ([@justin-curtis-lu](https://github.com/justin-curtis-lu))
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Naoto Sato has updated the pull request incrementally with two additional 
> commits since the last revision:
> 
>  - Merge remote-tracking branch 'jdk-sandbox/json' into 
> JDK-8381976-Implementation-for-Simple-JSON-API
>  - Print ASCII non-control characters as is in error messages

src/jdk.incubator.json/share/classes/jdk/incubator/json/impl/Utils.java line 52:

> 50:      * Escapes a String to ensure it is a valid JSON String.
> 51:      * Backslash, double quote, and control chars are escaped.
> 52:      * Providing this method in Utils allows for a bypass of 
> `JsonString.of(str).value()`

`.value()`? I assume this is left over from an early iteration.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/32282#discussion_r3835480628

Reply via email to