add indent=4 kwarg to json.dumps()

This commit is contained in:
Daniel Harte 2025-10-12 12:03:24 +01:00 committed by GitHub
parent a125cd84b0
commit e7ed3eccf6
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)