Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.4.3
-
None
-
None
-
Unknown
Description
I would like to be able to force indent based on a query parameter so that we are not indenting on every call, but only when we need to.
For example,
http://localhost:8080/services/customer?indent=true
It would be nice if indent would accept (yes|y|true|on).
The code might look as follows for the JaxbElementProvider (not sure about Json).
In the marshal method:
if (("on".equalsIgnoreCase(indent)) ||
("yes".equalsIgnoreCase(indent)) ||
("true".equalsIgnoreCase(indent)))