Quick answer
JSON Control Character – causes and fixes.
JSON Control Character
JSON Control Character – causes and fixes. Use a JSON validator to locate the error.
Common causes
- Raw tab/newline in string.
How to fix
- Use \t \n \r.
Use our JSON Validator to paste your input and see the exact error location. Validatethis.org offers free validators for JSON, XML, CSV, HTML, and more. Check /tools for the full list. For API access and integration, see /developers.
FAQ
- Newline in string?
- Only \n.
- Control chars?
- Escape them.
Fix it now
Try in validator (prefill this example)