the-art-of-command-line
the-art-of-command-line copied to clipboard
JSON diffing, prettydiff, and similar tools
http://prettydiff.com/ is avery useful concept and integrated in a few places like Atom. It is a bit clumsy to use/set up from command line so we'd need some illustration or note. Or are there better alternatives?
Others: https://github.com/andreyvit/json-diff
And how about this? (which actually works pretty well — see also #516 with less -R.
diff <(jq --sort-keys . < "$file1") <(jq --sort-keys . < "$file2") | colordiff
I use jq for json stuff