Getting started with jackson


This section provides an overview of what jackson is, and why a developer might want to use it.

It should also mention any large subjects within jackson, and link out to the related topics. Since the Documentation for jackson is new, you may need to create initial versions of those related topics.


Jackson is a Java JSON library. As such, setting it up is as simple as adding it to the classpath of the Java project where its usage is intented.

Firstly, the jars need to be downloaded to a location on the local disk:

  • jackson-core
  • jackson-annotations (leverages annotation usage)
  • jackson-databind (general data-binding functionality)

They can be found for download in one of the central Maven repositories, under the com.fasterxml.jackson.core group:


What is now left is adding the libraries on the classpath when running the Java application:

java -cp "<<jackson_lib_location>>/*" my.package.MainClass

Alternatively, using Maven, the dependencies just need to be added to the pom.xml file of the project:




Ivy version:

<dependency org="com.fasterxml.jackson.core" name="jackson-core" rev="2.8.8"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-annotations" rev="2.8.8"/>
<dependency org="com.fasterxml.jackson.core" name="jackson-databind" rev="2.8.8"/>

Gradle version:

dependencies {
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.8'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.8.8'
    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8'

This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow