Spring Boot and Jackson: How to Exclude Empty Strings and Arrays During Serialization Why take the boring stuff?
Spring Boot and Jackson: How to Exclude Null Values During Serialization With @JsonInclude Yes, you exclude with an annotation named @JsonInclude.