Refactor pretty json printing methods
Merge pull request #1 from renechz/master

refactoring print_pretty_json method