Disable pretty print json formatting by default

This commit adds a -p and --pretty flag to enable pretty print
json. By default pretty printing is disabled to avoid a performance
penalty.

Fixes #5