Snippets tagged “deserialization”
2 snippets use this tag.
- Only using @JsonIgnore during serialization, but not deserializationJava
If you want to use the @JsonIgnore annotation to ignore a field during serialization but not during deserialization, you can use the @JsonIgnoreProperties annotation and set its writeOnly property to true.
- When is the @JsonProperty property used and what is it used for?Java
The @JsonProperty annotation is used to specify the property name in a JSON object when serializing or deserializing a Java object using the Jackson library.