the-art-of-command-line icon indicating copy to clipboard operation
the-art-of-command-line copied to clipboard

JSON diffing, prettydiff, and similar tools

Open jlevy opened this issue 7 years ago • 1 comments

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

jlevy avatar May 20 '17 17:05 jlevy

I use jq for json stuff

heitorPB avatar Jun 04 '19 17:06 heitorPB