When RESTeasy marshals a POJO into XML, it will skip null values by default.
However, when marshaling to JSON, null properties are included. Is there any way to force the JSON output to match the XML output?
Also i tried @XmlElement(required=false, nillable=true)) and it’s not worked. I’ve been used only RESTeasy with Annotations.
Use Jackson 2. Setup the following provider:
The Scala module is optional.