Revival of JEP 198 (Light-Weight JSON API)?

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Apr 16 15:02:45 UTC 2020


The recent removal of Nashorn has indicated several places were 
javascript were used in the JDK mainly due to it's built-in support for 
parsing JSON. While there exists several third party JSON libraries, the 
lack of a JSON parser included in the JDK is becoming more and more 
apparent. I guess it might be common for other users as well, to have 
utilized Nashorn and Javascript for it's JSON abilities. Even if we now 
deprive these users of Javascript, we need not deprive them of JSON 
handling ability.

Fortunately, there already exists a JEP (JEP 198: Light-Weight JSON API) 
[1] that proposes this. Unfortunately, to my knowledge, this is nowhere 
closer to being delivered in the JDK than it was when it was created in 
2014.

It's 2020. I believe the inclusion of a standard JSON library in the JDK 
is long overdue. This is not a technically challenging JEP. It's more a 
question of "just doing it". Of course it's important to get the API 
right, but once again, the problem space is small, and there are several 
other successful JSON libraries out there that can serve as good 
inspiration.

/Magnus

[1] https://openjdk.java.net/jeps/198




More information about the discuss mailing list