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 sor

json sort and compare

submited by
Style Pass
2024-10-05 12:00:16

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.

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.

Leave a Comment