I currently have a Jersey web service (JAX-RS) that returns an annotated JAXB object with a simple @Produces("text/xml") in my Webservice method. Unfortunately, the result looks pretty dirty because it is not formatted with gaps and spaces.
Is there any annotation I can use, e.g. RESTeasy @Formatted
or
How to implement a marshaller and where?
source share