Spring REST Service: how to configure to remove null objects in json response October 10, 2022 by Tarik Since Jackson 2.0 you can use JsonInclude @JsonInclude(Include.NON_NULL) public class Shop { //... }