79635764

Date: 2025-05-23 15:08:29
Score: 0.5
Natty:
Report link

Found a solution that works recursively:

$ jq --sort-keys \. data.json

If also wish to sort the arrays use:

$ jq --sort-keys 'walk(if type == "array" then sort else . end)' data.json
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: I J