200-901 · Question #10
200-901 Question #10: Real Exam Question with Answer & Explanation
The correct answer is C: { "books": { "science": { "biology": "10.00", "geology": "9.00", "chemistry": "8.00" }, "math": { "calculus": "20.00", "algebra": "12.00" } } }. Converting XML-encoded hierarchical data to its JSON equivalent requires correctly mapping nested XML elements to nested JSON objects with matching key-value pairs.
Question
Refer to the exhibit. Which JSON is equivalent to the XML-encoded data? A. B. C. D.
Options
- A{ "books": { "science": { "biology": "10.00", "geology": "9.00", "chemistry": "8.00" }, "math": { "calculus": "20.00", "algebra": "12.00" } } }
- B{ "books": { "science": { "biology": "10.00", "geology": "9.00", "chemistry": "8.00" }, "math": { "calculus": "20.00", "algebra": "12.00" } } }
- C{ "books": { "science": { "biology": "10.00", "geology": "9.00", "chemistry": "8.00" }, "math": { "calculus": "20.00", "algebra": "12.00" } } }
- D{ "books": { "science": { "biology": "10.00", "geology": "9.00", "chemistry": "8.00" }, "math": { "calculus": "20.00", "algebra": "12.00" } } }
Explanation
Converting XML-encoded hierarchical data to its JSON equivalent requires correctly mapping nested XML elements to nested JSON objects with matching key-value pairs.
Common mistakes.
- A. Choice A incorrectly structures or orders the JSON object such that it does not faithfully replicate the hierarchy or values present in the source XML.
- B. Choice B contains a structural or value mismatch that does not accurately reflect the nesting and data from the original XML-encoded document.
- D. Choice D misrepresents the XML data by using an incorrect structure or incorrect key-value assignments that diverge from the source XML.
Concept tested. XML to JSON data format conversion
Reference. https://developer.cisco.com/docs/platform-introduction/
Topics
Community Discussion
No community discussion yet for this question.