Is there any API in Java to work with JSON?
-
What standard
api
Working withjson
? For everything to come out of the box, I mean, from normal.java jdk 1.7
♪
php
Right in the box, there's a json job in Java, isn't there?
-
Unfortunately, there is currently no built JSON API in Java. The developers wanted to add a standardized JSON API in Java 9, but then decided to add other important phishes and remove it from the list. We don't know if he'll be in Java 10.
In the meantime, we have to use separate libraries.
Like https://docs.oracle.com/javaee/7/api/javax/json/package-summary.html which can be taken from http://mvnrepository.com/artifact/javax.json/javax.json-api/1.0 :
<dependency> <groupId>javax.json</groupId> <artifactId>javax.json-api</artifactId> <version>1.0</version> </dependency>
or http://www.json.org/java/index.html which can be taken from http://mvnrepository.com/artifact/org.json/json/20151123
<dependency> <groupId>org.json</groupId> <artifactId>json</artifactId> <version>20151123</version> </dependency>
and other libraries.
https://stackoverflow.com/questions/2591098/how-to-parse-json-in-java