Extension Icon

Format JSON

Formats a JSON file with a selected indentation. If the JSON is stringified, it will be parsed before formatting.
AvatarTimur Badretdinov
38,911 Installs
OverviewCommandsVersion History

Versions13

Adds formatToJsonValue - January 10, 2025

  • Add a new command to format text into a valid JSON value with double quotes and escapes

Fix un-escaping JSON values - January 9, 2025

  • Adds a check to determine if the full payload is escaped before attemptiong to un-escape the entire payload

Adds formatSelectionAndShow - December 6, 2024

  • Add a new command to format JSON selected in the foremost editor and show it in the viewer

Adds support for escaped JSON strings - October 2, 2024

  • Correctly validate a JSON string that has been escaped

Improvements and fixes - August 29, 2024

  • Format JSON Lines: Make actions in sync with Format JSON command, i.e. copies the output to clipboard for "Format" action.
  • Use toasts instead of HUDs to color-code messages/prompts.
  • Format JSON and JSON Lines: Add a detail view to view decorated JSON in markdown.
  • Added new command to format JSON selected in the foremost editor.
  • Upgraded dependencies to resolve critical security vulnerabilities.
  • Minor refactoring and linter fixes.

Adds support for JSONLines formatting - April 22, 2024

  • Add formatting from JSON/JS Object Array to JSONLines

Fix json () bug - February 20, 2024

  • Fixed bug where json with "()"" was not being recognized, for example {"color": "rgba(0, 0, 0, 0.5)"}

Adds support for parsing stringified JSON - June 29, 2023

  • If the JSON is stringified, it will be parsed before formatting

Allow to Preview Formatted JSON - April 4, 2023

  • Ability to view formated JSON
  • Added new action to view formatted JSON
  • Ability to recognize invalid input

Format JS Objects - February 12, 2023

  • Ability to format JS Objects

Added Clipboard Copy Paste - February 7, 2023

  • Ability to copy, format and paste from clipboard directly

Fixes - April 20, 2022

  • Moved indentation to preferences

Added Format JSON - December 10, 2021

  • Initial version