Added an option to 'pretty print' the json output