Broken example
{
// This is invalid JSON
"enabled": true
}Corrected example
{
"enabled": true
}Why this error happens
JSON is designed as a strict data interchange format. Because comments are not part of the specification, parsers reject them instead of ignoring them.
How to fix it
- Remove all single-line or block-style comments from the payload.
- If the note matters, move it into documentation or a real data field.
- Validate the cleaned JSON.
- Format it for easier inspection.