prettyJson helper was incorrect