Ignore Empty Collections during Serialisation

Viewed 2971

I have read questions like these @JsonInclude to ignore null values. This works for me for regular fields within an entity but not for Collections. In case of empty Collections within an entity, Json serialisation gives a null value.

How does one do a equivalent ignore for collections ?

2 Answers
Related