mirror of
https://github.com/meshtastic/python.git
synced 2026-06-16 11:29:58 -04:00
Merge pull request #558 from geeksville/pr-fixjson
Pretty indent --info JSON output (see below for details)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user