json-compare-sorted-diff
Installation
SKILL.md
Compare JSON Files by Path with --sort and diff
Gronify has no compare subcommand of its own. Instead, gronify flatten --sort turns each JSON file into one json.path = value line per value with object keys sorted at every depth, so the system diff tool (or git diff) ignores key reordering and whitespace and shows every real change with its full path.
Prerequisites
Check command -v gronify (PowerShell: Get-Command gronify) and verify --sort exists (gronify flatten --help | grep -e --sort, requires 1.2.0+). If missing, use npx gronify ... or ask the user before installing (npm install -g gronify or brew install 1solomonwakhungu/tap/gronify).
Compare two JSON files
Bash or zsh (process substitution)
diff -U1 --label old.json --label new.json \
<(gronify --no-color flatten --sort old.json) \
<(gronify --no-color flatten --sort new.json)
For only the changed lines (easy to paste into a summary or pipe onward):