You can mark it as @JsonIgnore
.
With 1.9, you can add @JsonIgnore
for getter, @JsonProperty
for setter, to make it deserialize but not serialize.
More Related Contents:
- How to use Jackson to deserialise an array of objects
- Java 8 LocalDate Jackson format
- Jackson – Deserialize using generic class
- Jackson with JSON: Unrecognized field, not marked as ignorable
- Different names of JSON property during serialization and deserialization
- Date format Mapping to JSON Jackson
- Deserialize JSON with Jackson into Polymorphic Types – A Complete Example is giving me a compile error
- JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
- Jackson serialization: ignore empty values (or null)
- Parsing JSON in Java without knowing JSON format
- How to serialize Joda DateTime with Jackson JSON processor?
- Jackson JSON Deserialization with Root Element
- Jackson Change JsonIgnore Dynamically
- Query a JSONObject in java
- How to create a custom deserializer in Jackson for a generic type?
- JPA Transient Annotation and JSON
- How to convert XML to JSON using only Jackson?
- How to enforce ACCEPT_SINGLE_VALUE_AS_ARRAY in jackson’s deserialization process using annotation
- Removing JSON elements with jackson
- Jackson – Required property?
- Jackson @JsonProperty(required=true) doesn’t throw an exception
- JSON to JSON transformer
- Jsonpath with Jackson or Gson
- Jackson JSON serialization, recursion avoidance by level defining
- Json deserialization into other class hierarchy using Jackson
- Jackson ObjectMapper DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT
- How to annotate enum fields for deserialization using Jackson json
- Jackson Serialize Instant to Nanosecond Issue
- How to deserialize JSON into flat, Map-like structure?
- Jackson deserialize based on type