Remove JSONC comments and trailing commas so a commented configuration becomes strict JSON.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
A character scanner tracks quoted strings and removes line and block comments only outside strings. It drops commas before closing braces or brackets, then parses the result as strict JSON.
{
// Server config
"host": "localhost",
"port": 3000 /* default port */
}
{
"host": "localhost",
"port": 3000
}
tsconfig.json, .vscode/settings.json, and build-time configuration conversion use JSONC.