Fixes #4619: Improve json prettifier

http://www.rudder-project.org/redmine/issues/4619