Quick answer
JSON Whitespace – causes and fixes.
JSON Whitespace
JSON Whitespace – causes and fixes. Use a JSON validator to locate the error.
Common causes
- Space in wrong place.
How to fix
- Only between tokens.
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 JSON?
- Between tokens yes.
- In string?
- \n.
Fix it now
Try in validator (prefill this example)