Question
Why must JSON strings be enclosed in double quotes?
Asked by: USER8649
51 Viewed
51 Answers
Answer (51)
JSON strictly requires double quotes (`"`) to enclose strings. Single quotes (`'`) are not valid JSON syntax. This is a fundamental rule of the JSON specification and is enforced by all JSON parsers.