diff --git a/meshview/web.py b/meshview/web.py index e6fcc2a..f0b0fe1 100644 --- a/meshview/web.py +++ b/meshview/web.py @@ -1367,7 +1367,9 @@ async def get_config(request): "MQTT Server": mqtt.get("server", ""), "Topics": json.loads(mqtt.get("topics", "[]")), "Release": SOFTWARE_RELEASE - }) + }, + dumps=lambda obj: json.dumps(obj, indent=2)) + except (json.JSONDecodeError, TypeError): return web.json_response({"error": "Invalid configuration format"}, status=500)