Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

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

Daniel Harte27ffd12c45d4
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)