aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/util.py')
-rw-r--r--gallery_dl/util.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/util.py b/gallery_dl/util.py
index 128f48b..d5bc171 100644
--- a/gallery_dl/util.py
+++ b/gallery_dl/util.py
@@ -253,7 +253,11 @@ def json_default(obj):
json_loads = json._default_decoder.decode
-json_dumps = json.JSONEncoder(default=json_default).encode
+json_dumps = json.JSONEncoder(
+ check_circular=False,
+ separators=(",", ":"),
+ default=json_default,
+).encode
def dump_json(obj, fp=sys.stdout, ensure_ascii=True, indent=4):