Registry / serialization / jackson-xc

jackson-xc

JSON →
library1.9.11javamavenunverified

Jackson JSON processor extensions providing interoperability support for data binding.

<dependency> <groupId>org.codehaus.jackson</groupId> <artifactId>jackson-xc</artifactId> <version>1.9.11</version> </dependency>
INSTALL
IMPORT
SIG · JACKSON-XC
J
jackson-xc
serializationjavav1.9.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JaxbAnnotationIntrospector
org.codehaus.jackson.xc.JaxbAnnotationIntrospector

Configure Jackson ObjectMapper to use JAXB annotations for serialization.

import org.codehaus.jackson.xc.JaxbAnnotationIntrospector; import org.codehaus.jackson.map.ObjectMapper; public class JacksonXcExample { public static void main(String[] args) throws Exception { ObjectMapper mapper = new ObjectMapper(); mapper.setAnnotationIntrospector(new JaxbAnnotationIntrospector()); String json = mapper.writeValueAsString(new MyBean()); System.out.println(json); } static class MyBean { public String name = "test"; } }
Debug
Known issues
breakingJackson 1.x is deprecated; use Jackson 2.x (com.fasterxml.jackson) instead.
fix
Replace org.codehaus.jackson with com.fasterxml.jackson.core:jackson-databind.
affects: *
Upgrade
Version history
1.9.11latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jackson-xc — mvn dependency:get jackson-xc · libregistry