I am trying to convert an object into a JSON with JAXb. The object itself was created from an XML. It works great, the only problem is that the name of a java-class property called "content" annotated with @XmlValue is renamend into "value". Here is what I mean:
Xml:
Java Object
Marshalling the previously unmarshalled object
This is the result I get after Marshall
As you can see the property "content" is translate, when marshalling, into "value".
Desired result
Using Java 8.
I tried everything. Can you please help?