EN
Java - Jackson library installation instruction
8 points
In this short article, we would like to show how to install Jackson library in Java project.
Jackson library is useful when we want to make conversion from:
- JSON to any Java
Object
, - any Java
Object
to JSON.
Read below sections to know simple ways how to do it.
e.g. we can use library with version 2.13.2 by inserting <dependency>
element inside <dependences>
element inside *.pom
file:
xxxxxxxxxx
1
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
2
<dependency>
3
<groupId>com.fasterxml.jackson.core</groupId>
4
<artifactId>jackson-databind</artifactId>
5
<version>2.13.2.2</version>
6
</dependency>
Note: later run
mvn install
ormvn clean install
to download library automatcally - use command line in the project directory to do it.
e.g. we can use library version 2.13.2 that can be downloaded as *.jar
.
It is necessary to attach 2 libraries:
Just download bundles like in the below example: