FasterXML / jackson-annotations

Core annotations (annotations that only depend on jackson-core) for Jackson data processor
https://github.com/FasterXML/jackson
Apache License 2.0
1.03k stars 330 forks source link

@JsonInclude(Include.NON_NULL) not working/ jackson serializing null values #53

Closed sanjutoyou closed 9 years ago

sanjutoyou commented 9 years ago

I have placed the annotation over the class/pojo and also configured the mapper, but it still serialize null values I am using Hibernate 4.3.7Final and Jackson 2.4.4. The collections are lazy loaded ref: http://stackoverflow.com/questions/27959267/jsonincludeinclude-non-null-not-working-jackson-serializing-null-values/27974849#27974849

Note: tried with 2.5.0 . It still serialize null values.

capture