pretty(config) serializing a dict to a JSON string with 2-space indentation and sorted keys — json.dumps(..., indent=2, sort_keys=True) — so diffs of config files stay stable.pretty({'b': 1, 'a': 2})a JSON string with "a" before "b", indented 2 spaces
Keys are alphabetized and indented.
Both are keyword arguments to dumps.
Sorted keys make output deterministic.