Why must JSON strings be enclosed in double quotes?

Question

Grade: Education Subject: Support
Why must JSON strings be enclosed in double quotes?
Asked by:
51 Viewed 51 Answers

Answer (51)

Best Answer
(199)
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.