def save_json(self, fname='<STR_LIT>'):
rows = sorted(self.keys())<EOL>with open(fname, '<STR_LIT>') as fp:<EOL><INDENT>json.dump([self[k] for k in rows], fp, indent=<NUM_LIT:1>)<EOL><DEDENT>
Write out to a CSV file.