Strip comments and trailing commas from JSONC, JSON5, and config files to get valid JSON.
JSONC (JSON with Comments) is a superset of JSON that allows single-line (//) and multi-line (/* */) comments. It's commonly used in configuration files like tsconfig.json, .vscode/settings.json, and eslint.json.
// This is a comment/* Block comment */{"a": 1, "b": 2,} → {"a": 1, "b": 2}tsconfig.json for programmatic parsing