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
You can use JsonWriteNullProperties for older versions of Jackson.
For Jackson 1.9+, use JsonSerialize.include.