Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 112

How do XML and JSON compare regarding functionality?

Answer options

Correct answer: D

Explanation

The correct answer is D because JSON does indeed natively support arrays, allowing for the direct representation of lists, whereas XML does not have a native array construct and requires additional complexity to represent similar structures. Option A is incorrect as JSON also offers mapping capabilities, and option B is false since JSON is typically considered more human-readable. Option C is misleading because JSON supports basic data types like strings and numbers, which are sufficient for many applications.