Typical Causes
- Empty string passed to
json.loads. - API returned HTML/plain text, not JSON.
- Single quotes or trailing commas.
- UTF-8 BOM at start of file.
Debug Workflow
- Log raw payload length and first characters.
- Validate content in JSON Validator.
- Normalize structure with JSON Formatter.
- Use Python JSON workflow guide for code-level handling.
Related Tools
Use JSON Parser for parse checks and JSON Diff when comparing failing vs working payloads.