I have a spring webservice that returns a json response. I\'m using the example given here to create the service: http://www.mkyong.com/spring-mvc/spring-3-mvc-and-json-exam
Since Jackson 2.0 you can use JsonInclude
@JsonInclude(Include.NON_NULL) public class Shop { //... }