I have an issue with JAXB / Jackson marshalling. I have such an annotation
@XmlAttribute(name = "private")
protected Boolean mPrivate;
and I expect that this attribute be absent if the mPrivate
variable is null
.
This works fine if the output is XML. But if I switch to JSON, using Jackson, the output is
xxxxxxx, "private":null, xxxxxxxx
Anybody has an idea why this happens and how to fix it? Thanks in advance.