Which of the following three code snippets is correct JSON syntax? Why?
- This not correct JSON syntax because keys in JSON need to be strings.
- This is the only correct option.
- This not correct JSON syntax because, unlike JavaScript, JSON only uses double quotation marks ("").
Back to the exercises