JSON/JSONC Code Formatter
Supports:
- JSON
- JSONC (JSON with comments)
Install and Setup
In a dprint configuration file:
- Specify the plugin url in the
"plugins"
array. - Ensure
.json
file extensions are matched in an"includes"
pattern. - Add a
"json"
configuration property if desired.
{
// omitted...
"json": {
// json config goes here
},
"includes": [
"**/*.{json}"
],
"plugins": [
"https://plugins.dprint.dev/json-x.x.x.wasm"
]
}
Configuration
See Configuration
Playground
See Playground