I'm searching for a CLI (Windows) tool to compare 2 JSON files.
The trick is that the data objects within the JSON files may be in different orders (positions). Even if the order of data objects changes, if the objects themselves are unchanged, I want the tool to report that the files are equivalent.
I want to run the tool from a script, so it needs to run without interaction if the files are the same. I'm okay if it forces a UI when the files are not equivalent, but that's not preferred.
Because it will be running from a script, a hard requirement is that it returns an errorlevel environment variable that I can use to determine if the 2 JSON files are equivalent.
CLI is really what I prefer, but a GUI that conforms to the above will work too. So please don't hesitate to recommend either.
Related: Diff tool for JSON files?