Keith Donald (of spring source) tweeted the following a while back.
Spring MVC support for Jackson 2; also works with Jackson’s native
“pretty print” feature https://gist.github.com/2423129
I haven’t tried the MappingJackson2HttpMessageConverter
found in the gist above but it would surprise me if it did not work.
More Related Contents:
- Serializing enums with Jackson
- Parsing JSON in Spring MVC using Jackson JSON
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- 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
- Only using @JsonIgnore during serialization, but not deserialization
- 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?
- Spring configure @ResponseBody JSON format
- 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 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 MVC PATCH method: partial updates
- Parsing json into java objects in spring-mvc
- Spring MVC: How to modify json response sent from controller