If your shell supports process substitution (Bash-style follows, see docs):

diff <(jq --sort-keys . A.json) <(jq --sort-keys . B.json)

Objects key order will be ignored, but array order will still matter. It is possible to work-around that, if desired, by sorting array values in some other way, or making them set-like (e.g. ["foo", "bar"] β†’ {"foo": null, "bar": null}; this will also remove duplicates).

Alternatively, substitute diff for some other comparator, e.g. cmp, colordiff, or vimdiff, depending on your needs. If all you want is a yes or no answer, consider using cmp and passing --compact-output to jq to not format the output for a potential small performance increase.

Answer from Erik on Stack Overflow
🌐
JSON Diff
jsondiff.com
JSON Diff - The semantic JSON compare tool
Validate, format, and compare two JSON documents. See the differences between the objects instead of just the new lines and mixed up properties.
🌐
JSON Compare
jsoncompare.org
JSON Compare - Best JSON Diff Tools
JSON Compare helps to Compare and find diff in JSON data.
Discussions

diff - Using jq or alternative command line tools to compare JSON files - Stack Overflow
Are there any command line utilities that can be used to find if two JSON files are identical with invariance to within-dictionary-key and within-list-element ordering? Could this be done with jq or More on stackoverflow.com
🌐 stackoverflow.com
How to compare two JSON have the same properties without order?
The function compares the respective values of the same keys for the two objects. Further, if the two values are objects, it uses recursion to execute deep comparison on them as well. Hope this helps. ... This code will verify the json independently of param object order. More on stackoverflow.com
🌐 stackoverflow.com
Is there a way to compare two JSON files/json body?
I have so far failed to do such a thing - compare entire json files. Tried with RequestsLibrary, JSONlibrary, Collections working in unison, there is a always some error… It can be a simple one like on jsonplaceholder.typicode.com/todos/1 If anyone has a suggestion, please πŸ™‚ More on forum.robotframework.org
🌐 forum.robotframework.org
0
May 13, 2025
What is the best tool for comparing two large json files?
Sounds like you want a "structural diff" tool which finds differences based on the nested structure of the JSON objects themselves, not the serialized text representation. For instance: https://github.com/andreyvit/json-diff You could also hack something together with a JSON manipulation tool such as jq . There are a lot of possibilities depending on what kind of differences you're looking for. For instance, you could transform each file into a list of nested "key paths" (e.g. {"a": {"b": "foo"}} becomes something like a.b: "foo") and then sort and diff those lists instead of the original files. More on reddit.com
🌐 r/learnprogramming
39
13
October 7, 2025
🌐
JSON Compare
jsoncompare.com
JSON Compare - View, Format & Validate Diff Files | JSON Compare
Compare two JSON files side by side with real-time diff highlighting. Identify additions, deletions, and modifications instantly. Free online JSON comparison tool.
🌐
SemanticDiff
semanticdiff.com β€Ί online-diff β€Ί json
SemanticDiff - Online JSON Diff
Compare JSON files in your browser using our free semantic diff tool. It ignores whitespace and only highlights changes to the keys and values.
🌐
SourceForge
sourceforge.net β€Ί software β€Ί compare β€Ί News-API-vs-Schema-JSON-LD-App
News API vs. Schema (JSON-LD) App Comparison
2 days ago - Compare News API vs. Schema (JSON-LD) App using this comparison chart. Compare price, features, and reviews of the software side-by-side to make the best choice for your business.
Find elsewhere
🌐
Playcode
playcode.io β€Ί json-diff
JSON Diff Online - Free JSON Compare & Merge Tool
Free online JSON diff tool to compare and merge JSON files. Side-by-side comparison, three-way merge, array key matching, and JSON Patch export. No ads, fast, and privacy-friendly.
🌐
JSON Formatter
jsonformatter.org β€Ί json-compare
JSON Compare Online to find different between two json
JSON Compare refers to the process of comparing two JSON (JavaScript Object Notation) data structures to determine the differences between them.
🌐
Leapcell
leapcell.io β€Ί blog β€Ί how-to-compare-json-a-practical-guide
How to Compare JSON: A Practical Guide | Leapcell
July 25, 2025 - For automated and more complex comparisons, programming libraries can be used: Python: The json module can parse JSON data, and libraries like deepdiff can compare nested structures.
🌐
JSON Diff
json-diff.com
JSON Diff - Compare and Find Differences in JSON Files Online
JSON Diff is a free and open-source tool to compare two JSON objects and find differences. Visualize changes in JSON files, easy and fast.
🌐
Keploy
keploy.io β€Ί home β€Ί community β€Ί how to compare two json files?
How to compare two JSON files? | Keploy Blog
June 9, 2024 - Find differences between two JSON files using Python, VS Code, and free online JSON diff tools. Ideal for developers and testers.
🌐
Robot Framework
forum.robotframework.org β€Ί libraries β€Ί jsonlibrary
Is there a way to compare two JSON files/json body? - JSONLibrary - Robot Framework
May 13, 2025 - I have so far failed to do such a thing - compare entire json files. Tried with RequestsLibrary, JSONlibrary, Collections working in unison, there is a always some error… It can be a simple one like on jsonplaceholder.…
🌐
HyperTest
hypertest.co β€Ί json-comparison-tool
JSON Comparison Tool | HyperTest
During data migration between systems, it's essential to verify that all data is transferred accurately and formatted correctly. JSON comparison tools can be used to compare data exports from old and new systems to ensure consistency.
🌐
GitHub
github.com β€Ί zgrossbart β€Ί jdd
GitHub - zgrossbart/jdd: A semantic JSON compare tool Β· GitHub
JSON Diff expands on the amazing work by the team at jsonlint.com and provides a semantic compare tool for JSON documents.
Author Β  zgrossbart
🌐
Json-5
json-5.com β€Ί jsoncompare
JSON Compare - Online JSONCompare Tools: Ignores the Order of Keys
JSON Compare is the process of comparing two or more JSON files or JSON data structures to identify their similarities and differences. This comparison can be done manually by examining the files side by side, but it can also be done using automated tools that highlight the differences between ...
🌐
Reddit
reddit.com β€Ί r/learnprogramming β€Ί what is the best tool for comparing two large json files?
r/learnprogramming on Reddit: What is the best tool for comparing two large json files?
October 7, 2025 -

I have two json files that contain the output of an api call to a report in our property management software from two different days. I want to see which items were added to and removed from the second file compared to the first. each file is about 100,000 lines. I tried using diff, and that does work, but It's really hard to read given the large number of differences. Is their a better or easier tool for this?

🌐
Cloudzenia
cloudzenia.com β€Ί tools β€Ί json-tools β€Ί json-difference
JSON Difference Checker: Compare & Analyze JSON Data | CloudZenia
Comparing the JSON response from an API with a previously stored response helps identify any changes or inconsistencies.When writing automated tests, comparing JSON output from different test runs helps detect regressions or unexpected changes in code behaviour.