Merge pull request #558 from geeksville/pr-fixjson

Pretty indent --info JSON output (see below for details)
This commit is contained in:
Ian McEwen
2024-04-28 21:40:43 -07:00
committed by GitHub
3 changed files with 8 additions and 6 deletions

View File

@@ -134,7 +134,7 @@ class MeshInterface:
# use id as dictionary key for correct json format in list of nodes
nodeid = n2["user"]["id"]
nodes[nodeid] = n2
infos = owner + myinfo + metadata + mesh + json.dumps(nodes)
infos = owner + myinfo + metadata + mesh + json.dumps(nodes, indent=2)
print(infos)
return infos