QuestionQ398

Software Development and Design

How do XML and JSON differ in terms of functionality?

  • A XML provides more support for mapping data structures into host languages than JSON.
  • B XML provides more human readability than JSON.
  • C JSON provides less support for data types than XML.
  • D JSON natively supports arrays and XML does not natively support arrays.
Explanation

JSON defines arrays as a native data structure. XML can represent collections through repeated elements, but it has no native array type.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!