If you have two JSON files that should be identical but are hard to compare due to the unordered nature of JSON, this VSCode extension can help by sorting then comparing them making it easier to focus on real content differences.
This extension sorts JSON files before comparison to make it easier to spot the differences in JSON files.
Features
Sort JSON objects by their keys.
Compare two JSON files and highlight the differences.
Demo
Here’s a quick demo: two sample JSON files are compared using the extension, demonstrating that only one key-value pair differs. The comparison is then displayed in VSCode’s diff viewer, which can make it difficult to fully grasp the differences between unordered JSON files.