Since Jackson 2.0 you can use JsonInclude
@JsonInclude(Include.NON_NULL)
public class Shop {
//...
}
More Related Contents:
- Configuring ObjectMapper in Spring
- How do I call the default deserializer from a custom deserializer in Jackson
- Avoid Jackson serialization on non fetched lazy objects
- 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?
- Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
- 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?
- Generics with Spring RESTTemplate
- @Valid when creating objects with jackson without controller
- Using Spring RestTemplate in generic method with generic parameter
- Serializing enums with Jackson
- Jackson 2.0 with Spring 3.1
- Parsing JSON in Spring MVC using Jackson JSON
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- JPA Transient Annotation and JSON
- java.lang.IllegalArgumentException: No converter found for return value of type
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- spring mvc not returning json content – error 406
- Spring 3.0 making JSON response using jackson message converter
- How to tell Jackson to ignore empty object during deserialization?
- Why does Jackson 2 not recognize the first capital letter if the leading camel case word is only a single letter long?
- Jackson date-format for OffsetDateTime in Spring Boot
- How to customise Jackson in Spring Boot 1.4
- Autowiring in JsonDeserializer: SpringBeanAutowiringSupport vs HandlerInstantiator
- Spring-MVC 406 Not Acceptable instead of JSON Response
- Spring @JsonIgnore not working
- How to use JNDI DataSource provided by Tomcat in Spring?