jq#
validate and pretty-print a file#
jq . input.jsonget a property with raw output#
jq -r .propertyName input.jsonminify#
jq -c . < input.jsoncompare file contents, regardless of structure:#
diff <(jq --sort-keys . a.json) <(jq --sort-keys . b.json)
diff <(jq -S . a.json) <(jq -S . b.json)