CategoryJava

How to use json with java

H

Is it possible to use json in combination with java? The answer is yes! You can easily parse json objects to java objects and vice-versa. To do so, you can use Google’s framework ‘gson’:

Maven dependency

<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>

Tag Cloud

Categories