Podcast
Questions and Answers
Which of the following is a valid JSON format?
Which of the following is a valid JSON format?
- {"key": "value"}
- {"key": "value"}
- {"key": "value"}
- {"key": "value"}
What is the purpose of escaping double quotes in JSON?
What is the purpose of escaping double quotes in JSON?
- To indicate the end of a JSON object
- To include special characters within a JSON string (correct)
- To indicate the start of a JSON array
- To separate key-value pairs in a JSON object
What is the correct way to access the value of a key in a JSON object using JavaScript?
What is the correct way to access the value of a key in a JSON object using JavaScript?
- json.key (correct)
- json[key]
- json.value(key)
- json.get(key)