JSON does not support comments — the // and /* */ syntax is JavaScript-only. Any JSON parser will reject commented JSON immediately. Paste your commented JSON below and JSONBlitz strips all comments and returns valid, clean JSON.
Formatted output appears here...
Process JSON to generate code...
JSON does not support comments. The // and /* */ syntax is valid JavaScript but causes an "unexpected token" or "unexpected character" error in any JSON parser. JSONBlitz strips both single-line and multi-line comments automatically and gives you valid JSON output.
JSON was designed by Douglas Crockford as a minimal data interchange format. Comments were deliberately excluded — the reasoning was that JSON is data, not code, and data does not need inline documentation. Despite many requests, the JSON specification has never added comment support. JSONC (JSON with Comments) is a popular superset used in some tools like VS Code config files, but it is not standard JSON.
Paste your commented JSON and JSONBlitz removes all // single-line comments and /* */ multi-line comments, then validates and formats the remaining content. The Diff tab shows which lines were removed.
© 2026 JSONBlitz — JSON comments error, remove comments from JSON, JSONC to JSON, unexpected token slash JSON, fix JSON comment error