Podcast
Questions and Answers
Which of the following is a correct example of JSON format?
Which of the following is a correct example of JSON format?
- { name: 'John', age: 30 }
- [ "name": "John", "age": 30 ]
- { "name": "John", "age": 30 } (correct)
- [ name: 'John', age: 30 ]
What is the correct way to access the value 'age' in the JSON object: { 'name': 'Alice', 'age': 25 }?
What is the correct way to access the value 'age' in the JSON object: { 'name': 'Alice', 'age': 25 }?
- object:age
- object.age
- object->age
- object['age'] (correct)
Which of the following is a valid key in a JSON object?
Which of the following is a valid key in a JSON object?
- age#
- user name
- first-name (correct)
- 1stName
Flashcards are hidden until you start studying