Actions
Tareas #190
closedSelene Wrapper - Tareas #189: Create new pattern for JSON services
Create class CustomJacksonJaxbJsonProvider
Puntos de historia:
1
Description
Tomee container takes de Johnzon JSON provider to convert beans to/from JSON because it's the default JSON provider.
It's neccesary to add the Jackson JSON provider to make this conversion correctly.
Tomee still take Johnzon as the defautl jSON provider.
So, extend the class JacksonJaxbJsonProvider:
<dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>2.4.3</version> </dependency>
Add the follow annotations:
@Provider @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
Actions