Correct Answer: B
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.
Reference:
JSON vs XML - W3Schools