Skip to content

Commit

Permalink
added indent to make json more readable (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximelucas authored Dec 5, 2022
1 parent 051b706 commit 3539c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgi/readwrite/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def write_json(H, path):
str(id): [str(n) for n in H.edges.members(id)] for id in H.edges
}

datastring = json.dumps(data)
datastring = json.dumps(data, indent=2)

with open(path, "w") as output_file:
output_file.write(datastring)
Expand Down

0 comments on commit 3539c9c

Please sign in to comment.