Do not serialize empty values – Jackson objectmapper (@JsonInclude)
Given an list of user defined objects or POJO and object may contains the empty values (e.g. null values or collection of size=0), so while converting list of objects to json we do not want to serialize the empty values. We have already discussed about not serializing empty values using setSerializationInclusion. We will use the JsonInclude annotation… Read More »