Sort JSON (Stable)
While it will use the editor's current settings for indentation, it otherwise uses default settings for the sort.
This extension implements only a command accessible via the command palette (
Why use this instead of some other formatter/sorter?
Some JSON sorters implement a document formatter for JSON so the
Some JSON sorters have too many options or try to do too much and can the results can be unpredictable/unreliable. This one goes for simple and standard using a tried and tested library that has been around for a while (
You'll Lose Comments
This extension can parse JSON with comments via the JSON5 parser, but when writing the sorted JSON back out your comments will disappear (as will other JSON extensions like trailing commas).