I noticed that WildFly's JAX-RS implementation keeps all the null fields. For example, I get
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?