I noticed that WildFly's JAX-RS implementation keeps all the null fields. For example, I get
{"id":999,"title":null}
instead of
{"id":999}
This is quite annoying that my bean classes have lots of properties, and most of the fields are usually null, so the REST client always get lots of useless values. Additionally this behavior introduces much more network overhead.
Is there any way to get rid of the null fields without introducing a 3rd party library?
Does any of the inputs here http://www.coderanch.com/t/641781/Web-Services/java/Jersey-Serialize-drop-null-properties help?