In case you familiar it, you can also use Jaxb annotations to marshal/unmarshal json using Jackson
@XmlRootElement
public class JsonEntity {
@XmlElement(name = "message")
private String value;
}
But you must initialize your Jackson context propery. Here an example how to initialize Jackson context with Jaxb annotations.
ObjectMapper mapper = new ObjectMapper();
AnnotationIntrospector introspector = new JaxbAnnotationIntrospector();
mapper.getDeserializationConfig().setAnnotationIntrospector(introspector);
mapper.getSerializationConfig().setAnnotationIntrospector(introspector);