JSON/JSONC Code Formatter

Supports:

  • JSON
  • JSONC (JSON with comments)

Install and Setup

In a dprint configuration file:

  1. Specify the plugin url in the "plugins" array.
  2. Add a "json" configuration property if desired.
{
  // omitted...
  "json": {
    // json config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/json-x.x.x.wasm"
  ]
}

Configuration

See Configuration

Playground

See Playground