Unirest now uses a modular json system. If you want to use JSON you MUST include in the pom the JSON implementation you wish to use. This can be either Jackson or Gson.
<!-- Pull in as a traditional dependency -->
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>4.0.0-RC3</version>
</dependency>
<!-- OR as a snazzy new standalone jar with shaded dependencies -->
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>4.0.0-RC3</version>
<classifier>standalone</classifier>
</dependency>
<!-- ONE of the following, if BOTH are on the path Unirest will pick the first it finds -->
<!-- GSON -->
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-object-mappers-gson</artifactId>
<version>4.0.0-RC3</version>
</dependency>
<!-- Jackson -->
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-object-mappers-jackson</artifactId>
<version>$4.0.0-RC3</version>
</dependency>
See the Upgrade Guide
See the Change Log for recent changes.
Our Documentation