qmk format-json
: Expose full key path and respect sort_keys
(#20836)
This commit is contained in:
parent
102c42b14b
commit
6d90fa2300
9 changed files with 48 additions and 52 deletions
|
@ -141,5 +141,5 @@ def via2json(cli):
|
|||
# Generate the keymap.json
|
||||
keymap_json = generate_json(cli.args.keymap, cli.args.keyboard, keymap_layout, keymap_data, macro_data)
|
||||
|
||||
keymap_lines = [json.dumps(keymap_json, cls=KeymapJSONEncoder)]
|
||||
keymap_lines = [json.dumps(keymap_json, cls=KeymapJSONEncoder, sort_keys=True)]
|
||||
dump_lines(cli.args.output, keymap_lines, cli.args.quiet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue