I am new to Jackson and I wrote code for practice. I found out that a new version of the Jackson library can be found in Fasterxml: Jackson , so I added the following dependencies to my maven pom file:
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.2.2</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.2.2</version> </dependency>
I expected that I could use ObjectMapper directly, however, having spent a lot of time, I found out that to use ObjectMapper I need to add the old libraries below:
<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-mapper-asl</artifactId> <version>1.9.2</version> </dependency> <dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-core-asl</artifactId> <version>1.9.2</version> </dependency>
I am a bit confused. Can someone please tell me why?
java json jackson
Hossein Aug 25 '13 at 13:25 2013-08-25 13:25
source share