Java Jackson - Json data binding filters
Jackson provides an effective an efficient way to bind json to POJOs. However, at times, certain properties may need to be ignored while converting a json to java ojbect and a java object to json string. Jackson provides three ways to filter properties.
- @JsonIgnoreProperties- This annotation can be used at the type level to ignore json properties. In the example below we ignore the 'tags' property from the albums dataset.
- @JsonIgnore - This annotation can be set at property level to ignore certain properties.
- Using Custom filters
Read full article from Java Jackson - Json data binding filters
No comments:
Post a Comment