Output pretty-formatted JSON.
This commit is contained in:
parent
163f5cacab
commit
dc86a9235e
@ -52,5 +52,5 @@ if name:
|
|||||||
filename = name.replace(" ", "_").lower()
|
filename = name.replace(" ", "_").lower()
|
||||||
|
|
||||||
with open(f"{filename}.json", 'w') as f:
|
with open(f"{filename}.json", 'w') as f:
|
||||||
f.write(json.dumps(recipe))
|
f.write(json.dumps(recipe, indent=2))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user