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
change variable prettyPrint
change as Eric's comments
change as Eric's comments
change prettyPrint
add new line