XD-1016: Provide an option to pretty print JSON output

JIRA: https://jira.spring.io/browse/XD-1016
* add pretty print to JSON output
* add test case
Should do a true unit test for the specific converters in a dedicated class, rather than spending 50% of lines of code finding the converter inside the list.