Implemented outputJSON=file-path as a way to output json to a file