This will be based on the "Content-Type" response header and will support:
[x] application/json
[x] text/xml
[x] application/xml
[x] all other content it will ensure there is a newline at the end
Other supporting features:
[x] If the pretty print fails, the original content will be displayed (with an appended newline if necessary), and message will be sent to the standard error device
[x] Overridable via a configuration file parameter
[x] Overridable via command line "--no-pretty"
[x] Overridable via command line "--pretty" (if it has been turned off in the configuration file)
This will be based on the "Content-Type" response header and will support:
Other supporting features: