Add an option to choose from json output and default output