|
JSON > Jackson > How to exclude a property from Json Serialization |
|
How to exclude a property from Json Serialization
Author: Venkata Sudhakar
We can customize serialization & deserialization process using com.fasterxml.jackson.annotation.JsonIgnore. This annotation can be applied to both fields and methods. By default it execludes the annotated methods & fields from the serialization & deserialization process. If required we can disable this using JsonIgnore(value=false) annotation.
|
|