json: Pretty-print dump

pull/38/head
Eric Cousineau 2021-05-30 12:45:02 -04:00
parent c875389e9a
commit bf9958c661
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def main():
with open(args.file, 'w', encoding='utf-8') as f: with open(args.file, 'w', encoding='utf-8') as f:
# JSON file. # JSON file.
if args.format == 'json': if args.format == 'json':
json.dump(playlists, f) json.dump(playlists, f, indent=2)
# Tab-separated file. # Tab-separated file.
else: else: