add indent=4 kwarg to json.dumps() (#10307)

This commit is contained in:
Daniel Harte 2025-10-13 20:14:52 +01:00 committed by GitHub
parent e693e4db6a
commit 27ffd12c45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ class PreviewAny():
value = str(source) value = str(source)
elif source is not None: elif source is not None:
try: try:
value = json.dumps(source) value = json.dumps(source, indent=4)
except Exception: except Exception:
try: try:
value = str(source) value = str(source)