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