Created
February 6, 2019 21:37
-
-
Save joshdabosh/7e69030eb02049087638d90b4030dee7 to your computer and use it in GitHub Desktop.
Orgnanizes config.json for the Pearl Hangouts Bot framework
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
f = json.loads(open("config.json").read()) | |
f["plugins"] = {a:b for a, b in sorted(f["plugins"].items())} | |
with open("config.json", "w") as a: | |
a.write(json.dumps(f, indent=4, sort_keys=True)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment