Add an option to allow pretty-printing result

This is a feature that I added to your plugin when using it myself - it's useful to see a nicely formatted json file when developing/debugging.