Quick answer
In JSON, string values and keys must use double quotes.
JSON Single Quotes Not Allowed
In JSON, string values and keys must use double quotes. Single quotes are not valid for delimiting strings.
Common causes
- Using single quotes from JavaScript or other languages.
- Pasting SQL or shell strings that use single quotes.
- Keyboard or editor converting quotes incorrectly.
How to fix
- Replace all single quotes used for strings with double quotes.
- Escape any double quotes inside the string with \".
- Use a find-replace or validator to catch single-quoted strings.
FAQ
- Can I use single quotes in JSON?
- No. The JSON spec allows only double quotes for strings.
- What if my string contains double quotes?
- Escape them: \" inside the string.
Fix it now
Try in validator (prefill this example)