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.
Related Contents:
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- Serializing enums with Jackson
- Parsing JSON in Spring MVC using Jackson JSON
- 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
- Right way to write JSON deserializer in Spring or extend it
- How to configure MappingJacksonHttpMessageConverter while using spring annotation-based configuration?
- How does the Spring @ResponseBody annotation work?
- Spring configure @ResponseBody JSON format
- How to return JSON data from spring Controller using @ResponseBody
- JSON parameter in spring MVC controller
- In Spring MVC, how can I set the mime type header when using @ResponseBody
- Can Jackson be configured to trim leading/trailing whitespace from all string properties?
- JPA Transient Annotation and JSON
- “Could not find acceptable representation” using spring-boot-starter-web
- Strange Jackson exception being thrown when serializing Hibernate object
- Spring RequestMapping for controllers that produce and consume JSON
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- How to distinguish between null and not provided values for partial updates in Spring Rest Controller
- Spring Security : Multiple HTTP Config not working
- Jackson and generic type reference
- org.codehaus.jackson versus com.fasterxml.jackson.core
- Difference between Role and GrantedAuthority in Spring Security
- Jackson ObjectMapper – specify serialization order of object properties
- JSON consumer of polymorphic objects
- Spring – No EntityManager with actual transaction available for current thread – cannot reliably process ‘persist’ call
- How to serialize only the ID of a child with Jackson
- Autowiring two beans implementing same interface – how to set default bean to autowire?
- JSON to JSON transformer
- Json and Java – Circular Reference
- Jackson/Hibernate, meta get methods and serialization
- JSON character encoding
- Manually call Spring Annotation Validation
- Jackson Serialize Instant to Nanosecond Issue
- How to use dynamic property names for a Json object
- How to fix Hibernate LazyInitializationException: failed to lazily initialize a collection of roles, could not initialize proxy – no Session
- Jackson JSON field mapping capitalization?
- request scoped beans in spring testing
- Returning JsonObject using @ResponseBody in SpringMVC
- How to convert a multipart file to File?
- Ignoring property when deserializing
- How to handle requests that includes forward slashes (/)?
- Spring @JsonIgnore not working
- Spring MVC – AngularJS – File Upload – org.apache.commons.fileupload.FileUploadException
- log4j:WARN No appenders could be found for logger in web.xml