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=1)
def save_json ( self , fname = 'servers.json' ) : rows = sorted ( self . keys ( ) ) with open ( fname , 'wt' ) as fp : json . dump ( [ self [ k ] for k in rows ] , fp , indent = 1 )
Write out to a CSV file.