New answers tagged

1

You can run both files through jq (available as a small Windows binary), let jq pretty-print and sort the data in both files according to your needs, and then perform an "ordinary" diff (with WinDiff, Meld, Diffuse). the shell commands would be < file1.json jq 'keys' > file1.sorted.json < file2.json jq 'keys' > file2.sorted.json ...


0

Did you try and take a look at GNU Diffutils (diff)? Diff specifically has the "-B" or "--ignore-blank-lines" switch, which "Ignore changes whose lines are all blank" (see also a similar question on Stack Exchange). There are other ways and variants as well to achieve the things you mentioned, such as using Vimdiff for example. ...


Top 50 recent answers are included