code: def save_json(self, fname='servers.json'):
          '''
              Write out to a CSV file.
          '''
          rows = sorted(self.keys())
          with open(fname, 'wt') as fp:
              json.dump([self[k] for k in rows], fp, indent=1f save_json(self, fname='servers.json'):
          '''
              Write out to a CSV file.
          '''
          rows = sorted(self.keys())
          with open(fname, 'wt') as fp:
              json.dump([self[k] for k in rows], fp, indent=1)
docs: Write out to a CSV file.