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" } (correct)
- { key: "value" }
What is the purpose of escaping characters in JSON?
What is the purpose of escaping characters in JSON?
- To indicate a comment in the JSON
- To make the JSON more readable
- To convert the JSON to a different data type
- To allow special characters to be included in a string (correct)
Which of the following is a valid way to access a value in a JSON object?
Which of the following is a valid way to access a value in a JSON object?
- json.value()
- json['value'] (correct)
- json(value)
- json.value
Flashcards are hidden until you start studying