Closed sunphy closed 6 years ago
I think this is already filed as:
https://github.com/FasterXML/jackson-databind/issues/1296
and the reason it sort of belongs more in jackson-databind
is just because adding annotation is simple, but adding actual handling and support is anything but (due to complexity of processing, at this point).
OK.Thank you. I think this is very useful!
Closing this in favor of the issue mentioned above.
Let's say you have 1 entity with cascade need to be serialized, when you only need serialize part of cascaded entity, you should do it as following:
but what if the ignored properties is too many and I only need the id and name properties to be serialized?A
@JsonOnlyProperties
or@JsonIncludeProperties
is more convenient and very easy to use. Think this scenario is most needed.