Class MappingJacksonValue

java.lang.Object
org.springframework.http.converter.json.MappingJacksonValue

public class MappingJacksonValue extends Object
A simple holder for the POJO to serialize via MappingJackson2HttpMessageConverter along with further serialization instructions to be passed in to the converter.

On the server side this wrapper is added with a ResponseBodyInterceptor after content negotiation selects the converter to use but before the write.

On the client side, simply wrap the POJO and pass it in to the RestTemplate.

Since:
4.1
Author:
Rossen Stoyanchev