code: def dump(self):
          
          report_as_json_string = utils.dict_to_json(self.report)
          if self.out_file:
              utils.string_to_file(self.out_file, report_as_json_string)
          else:
              print report_as_json_string
docs: Dump the output to json.