From e7ed3eccf6943259414b98fedc4f19c0ce58b645 Mon Sep 17 00:00:00 2001 From: Daniel Harte Date: Sun, 12 Oct 2025 12:03:24 +0100 Subject: [PATCH] add indent=4 kwarg to json.dumps() --- comfy_extras/nodes_preview_any.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_extras/nodes_preview_any.py b/comfy_extras/nodes_preview_any.py index e6805696f..e749fa6ae 100644 --- a/comfy_extras/nodes_preview_any.py +++ b/comfy_extras/nodes_preview_any.py @@ -25,7 +25,7 @@ class PreviewAny(): value = str(source) elif source is not None: try: - value = json.dumps(source) + value = json.dumps(source, indent=4) except Exception: try: value = str(source)