summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli/generate
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-05-20 22:15:05 +1000
committerGitHub <noreply@github.com>2023-05-20 22:15:05 +1000
commit6d90fa2300b463f5cc6920022a445d5ed217124c (patch)
tree2b0ae6329af789e81ba5d7313b752e5e828493e0 /lib/python/qmk/cli/generate
parent102c42b14bc79a178d16ae5217d739490a312ea4 (diff)
`qmk format-json`: Expose full key path and respect `sort_keys` (#20836)
Diffstat (limited to 'lib/python/qmk/cli/generate')
-rwxr-xr-xlib/python/qmk/cli/generate/info_json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/info_json.py b/lib/python/qmk/cli/generate/info_json.py
index 0dc80f10cc..08c294146b 100755
--- a/lib/python/qmk/cli/generate/info_json.py
+++ b/lib/python/qmk/cli/generate/info_json.py
@@ -76,7 +76,7 @@ def generate_info_json(cli):
# Build the info.json file
kb_info_json = info_json(cli.config.generate_info_json.keyboard)
strip_info_json(kb_info_json)
- info_json_text = json.dumps(kb_info_json, indent=4, cls=InfoJSONEncoder)
+ info_json_text = json.dumps(kb_info_json, indent=4, cls=InfoJSONEncoder, sort_keys=True)
if cli.args.output:
# Write to a file