If you’re using Spring Boot with Jackson on your classpath and default implementation for JSON parsing in your REST controller, then this should work:
@Autowired
private ObjectMapper jacksonObjectMapper;
More Related Contents:
- Serializing enums with Jackson
- Jackson 2.0 with Spring 3.1
- Parsing JSON in Spring MVC using Jackson JSON
- Spring 3.0 making JSON response using jackson message converter
- Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?
- Spring-MVC 406 Not Acceptable instead of JSON Response
- Infinite Recursion with Jackson JSON and Hibernate JPA issue
- Configuring ObjectMapper in Spring
- JQuery, Spring MVC @RequestBody and JSON – making it work together
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- How to customise the Jackson JSON mapper implicitly used by Spring Boot?
- Spring MVC – How to return simple String as JSON in Rest Controller
- How does the Spring @ResponseBody annotation work?
- Right way to write JSON deserializer in Spring or extend it
- How to configure MappingJacksonHttpMessageConverter while using spring annotation-based configuration?
- JSON parameter in spring MVC controller
- In Spring MVC, how can I set the mime type header when using @ResponseBody
- JPA Transient Annotation and JSON
- Strange Jackson exception being thrown when serializing Hibernate object
- Can Jackson be configured to trim leading/trailing whitespace from all string properties?
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- spring mvc not returning json content – error 406
- How to return JSON data from spring Controller using @ResponseBody
- Spring RequestMapping for controllers that produce and consume JSON
- How to tell Jackson to ignore empty object during deserialization?
- HTTP Status 406. Spring MVC 4.0, jQuery, JSON
- Spring MVC 4: “application/json” Content Type is not being set correctly
- Spring @RequestBody containing a list of different types (but same interface)
- Spring MVC PATCH method: partial updates
- Spring MVC: How to modify json response sent from controller