How can I tell a class to include only NON_EMPTY and NON_NULL values only, Using
@JsonInclude(Include.NON_NULL)
@JsonInclude(Include.NON_EMPTY)
public class foo{
String a;
}
is throwing error of duplicate annotation.
"Null is always considered empty" - Jackson's site
So the NON_EMPTY rule covers both cases..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With