Sort JSON (Stable)The While it will use the editor's current settings for indentation, it otherwise uses default settings for the sort. UsageThis 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 ( Finally, some JSON sorters are hard-tied to the JSON document type. This ignores JSON that might be embedded in a JavaScript file, or even JSON that appears in an HTML file as part of an embedded script. There's no language tie here - highlight something JSON and sort it. No judgment. You'll Lose CommentsThis 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). |