ExamGecko
Question list
Search
Search

Question 455 - 200-901 discussion

Report
Export

How do XML and JSON compare regarding functionality?

A.

XML provides more human readability than JSON.

Answers
A.

XML provides more human readability than JSON.

B.

JSON natively supports arrays and XML does not natively support arrays.

Answers
B.

JSON natively supports arrays and XML does not natively support arrays.

C.

XML provides more support for mapping data structures into host languages than JSON.

Answers
C.

XML provides more support for mapping data structures into host languages than JSON.

D.

JSON provides less support for data types than XML.

Answers
D.

JSON provides less support for data types than XML.

Suggested answer: B

Explanation:

JSON (JavaScript Object Notation) and XML (eXtensible Markup Language) are both used for data interchange but have different characteristics:

Human Readability: JSON is often considered more human-readable because it is more concise and closely resembles the structure of programming languages like JavaScript.

Support for Arrays: JSON natively supports arrays, making it straightforward to represent lists of values. XML can represent arrays, but it does not do so natively and requires additional markup to represent arrays.

Data Mapping: XML provides extensive support for mapping data structures, including attributes and mixed content, making it suitable for complex data structures.

Data Types: JSON is lighter and provides sufficient data types for many applications (strings, numbers, objects, arrays, booleans, and null), whereas XML can be more verbose and supports a broader range of data types.

JSON vs XML - W3Schools

asked 07/10/2024
Sorin Craia
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first