Skip to content

Instantly share code, notes, and snippets.

@joshdabosh
Created February 6, 2019 21:37
Show Gist options
  • Save joshdabosh/7e69030eb02049087638d90b4030dee7 to your computer and use it in GitHub Desktop.
Save joshdabosh/7e69030eb02049087638d90b4030dee7 to your computer and use it in GitHub Desktop.
Orgnanizes config.json for the Pearl Hangouts Bot framework
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