Skip to content

Commit 71918b9

Browse files
committed
update readme
1 parent 80d1f8e commit 71918b9

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,40 @@
77
[![Twitter Follow](https://img.shields.io/twitter/follow/UnirestJava.svg?style=social)](https://twitter.com/UnirestJava)
88

99
## Install With [Maven](https://mvnrepository.com/artifact/com.konghq/unirest-java)[:](https://repo.maven.apache.org/maven2/com/konghq/unirest-java/)
10+
### 🚨 Attention JSON users 🚨
11+
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.
12+
1013
```xml
1114
<!-- Pull in as a traditional dependency -->
1215
<dependency>
1316
<groupId>com.konghq</groupId>
1417
<artifactId>unirest-java</artifactId>
15-
<version>3.11.09</version>
18+
<version>4.0.0-RC2</version>
1619
</dependency>
1720

1821
<!-- OR as a snazzy new standalone jar with shaded dependencies -->
1922
<dependency>
2023
<groupId>com.konghq</groupId>
2124
<artifactId>unirest-java</artifactId>
22-
<version>3.11.09</version>
25+
<version>4.0.0-RC2</version>
2326
<classifier>standalone</classifier>
2427
</dependency>
2528

29+
<!-- ONE of the following, if BOTH are on the path Unirest will pick the first it finds -->
30+
<!-- GSON -->
31+
<dependency>
32+
<groupId>com.konghq</groupId>
33+
<artifactId>unirest-object-mappers-gson</artifactId>
34+
<version>4.0.0-RC2</version>
35+
</dependency>
36+
37+
<!-- Jackson -->
38+
<dependency>
39+
<groupId>com.konghq</groupId>
40+
<artifactId>unirest-object-mappers-jackson</artifactId>
41+
<version>$4.0.0-RC2</version>
42+
</dependency>
43+
2644
```
2745

2846
## Upgrading from Previous Versions

0 commit comments

Comments
 (0)