I was wondering if Java 9 has built-in support for JSON. If so how can I import it? I'm writing a socket program so I'm not talking about Java EE and my target to import to is a simple Java SE class.
There was a proposal to drop the feature by Mark Reinhold, Oracle’s Head of the Java:
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.
And it doesn't appear in the finalized features. So it appears Java 9 doesn't have a native JSON API.