且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java 9是否包含内置JSON?

更新时间:2023-11-25 23:44:34

有一个建议删除Oracle Java负责人Mark Reinhold的功能:

There was a proposal to drop the feature by Mark Reinhold, Oracle’s Head of the Java:

我们可能会重新考虑针对JDK 10或更高版本的[JSON API] JEP,特别是如果新的语言功能(例如值类型和原始类型的泛型(JEP 218))启用了更紧凑和更具表现力的API.

We may reconsider this [JSON API] JEP for JDK 10 or a later release, especially if new language features such as value types and generics over primitive types (JEP 218) enable a more compact and expressive API.

并且它没有出现在最终功能中.因此,看来Java 9没有本机JSON API.

And it doesn't appear in the finalized features. So it appears Java 9 doesn't have a native JSON API.