JsonView
JSON Views can be used to serialize/deserialize objects.
http://www.baeldung.com/jackson-json-view-annotation
example:
By default - all properties not explicitly marked as being part of a view, are serialized. We are disabling that behavior with the handy DEFAULT__VIEW__INCLUSION feature.
JsonView is kinda of filter. Some fields would not be serialized.
example to be completed:
integrate Spring RestAPIs with @JsonView
http://javasampleapproach.com/java-integration/integrate-spring-restapis-jsonview
Last updated