code: def write_json(self):
          
  
          with open(self.results_folder_name + '/results-' + str(self.get_global_count()) + '.json', 'a') as f:
              json.dump(self.result, f)
docs: Dump data into json file.