I simply added JsonSerialize and JsonDeserialize annotations.
@Transient
@JsonSerialize
@JsonDeserialize
private String myField;
More Related Contents:
- Configuring ObjectMapper in Spring
- Only using @JsonIgnore during serialization, but not deserialization
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- POST request via RestTemplate in JSON
- 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
- 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?
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- How to produce JSON output with Jersey 1.6 using JAXB
- Enforce not-null field in JSON object
- 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?
- Spring-MVC 406 Not Acceptable instead of JSON Response
- Spring MVC PATCH method: partial updates
- Get NPE reading null object field when deserializing using Jackson [closed]
- How do I call the default deserializer from a custom deserializer in Jackson
- How to convert the following json string to java object?
- download a file from Spring boot rest service
- Deserializing polymorphic types with Jackson based on the presence of a unique property
- How to map JSON field names to different object field names?
- Deserialize JSON to ArrayList using Jackson
- Jackson – serialization of entities with birectional relationships (avoiding cycles)
- How to convert XML to JSON using only Jackson?
- spring mvc not returning json content – error 406
- How should I log uncaught exceptions in my RESTful JAX-RS web service?