E020Error

Unterminated block comment

A /* comment was never closed with */.

What it means

Block comments are a JSONC/JSON5 feature (not standard JSON). When one is opened with /* but never closed, everything after it is swallowed as a comment.

Example

Invalid
{ /* todo
"a": 1 }
Valid
{ "a": 1 }

How to fix it

Close the comment with */, or remove it and parse in JSONC mode if needed.

Validate your JSON to see this and every other issue highlighted in one pass.


Diagnostics on this page come from @jsonlint/core, the open-source engine that powers the JSONLint validator. Install it with npm install @jsonlint/core.