Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Silly JSONNew to Visual Studio Code? Get it now.
Silly JSON

Silly JSON

namecannoteat

|
1 install
| (0) | Free
Toggle JSON array object layout between one-line and separate-line formats.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Silly JSON

A VS Code extension for switching JSON objects between compact one-line and readable separate-line layouts.

Commands

  • Silly JSON: Objects One Line
  • Silly JSON: Objects Separate Lines

Commands are available for JSON editors from the Command Palette, editor context menu, and editor title menu. They directly replace the current editor content and remain undoable with VS Code Undo.

Supported input

The root JSON value may be an object or an array. With no selection, the object containing the cursor is formatted. With a selection, objects whose opening brace is on a selected line are formatted; nested objects are included through their parent formatting, and unselected lines are left unchanged. The extension supports standard JSON, not JSONC comments or trailing commas.

Formatting re-serializes the document, so original whitespace and some textual representations are not preserved. The current line ending, indentation style, and final newline are retained where possible.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft