PRS002 - Invalid JSON¶
Description¶
The input is not valid JSON. This error occurs when the JSON parser encounters syntax errors in the document.
Severity¶
Error
When This Occurs¶
- JSON contains syntax errors (missing commas, brackets, quotes)
- File contains non-JSON content
- Encoding issues in the file
Example¶
Common Causes¶
- Missing commas between properties
- Trailing commas (not allowed in JSON)
- Single quotes instead of double quotes
- Unquoted property names
- Comments in JSON (not allowed)
Resolution¶
- Validate JSON syntax:
- Use a JSON linter:
- Check encoding (should be UTF-8):