JSON "prettifiers" produce unnecessarily long JSON...
Sounds familiar? This VS Code extension does the right thing by formatting your code snippets in a compact, but still pretty form.
https://marketplace.visualstudio.com/items?itemName=inadarei.json-compact-prettifier
- Select a JSON text in any file type,
- Invoke command runner (with Ctrl+Shift+P on Windows or Cmd+Shift+P on Mac)
- Type command name:
Format: Compact Pretty JSON
Enjoy.
Format: Compact Pretty JSON
- Guide to writing extensions in Javascript: https://blog.logrocket.com/writing-vs-code-extensions-in-javascript/