Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 14
Which two statements about JSON and XML are true? (Choose two.)
Answer options
- A. The syntax of JSON contains tags, elements, and attributes.
- B. XML objects are collections of key-value pairs.
- C. JSON objects are collections of key-value pairs.
- D. JSON arrays are an unordered set of key-value pairs.
- E. The syntax of XML contains tags, elements, and attributes.
Correct answer: C, E
Explanation
The correct answer is C and E because JSON objects indeed represent collections of key-value pairs, while XML syntax is characterized by tags, elements, and attributes. Options A and B are incorrect as JSON does not use tags and XML objects are not solely key-value pairs, respectively. Option D is also wrong because JSON arrays are ordered collections, not unordered.