From bf9958c6615747722d59687a4a7041bfd226e289 Mon Sep 17 00:00:00 2001 From: Eric Cousineau Date: Sun, 30 May 2021 12:45:02 -0400 Subject: [PATCH] json: Pretty-print dump --- spotify-backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotify-backup.py b/spotify-backup.py index ab167fa..316318b 100755 --- a/spotify-backup.py +++ b/spotify-backup.py @@ -181,7 +181,7 @@ def main(): with open(args.file, 'w', encoding='utf-8') as f: # JSON file. if args.format == 'json': - json.dump(playlists, f) + json.dump(playlists, f, indent=2) # Tab-separated file. else: