nerdexam
Cisco

300-535 · Question #106

What is a difference between JSON and XML in regard to data types?

The correct answer is A. JSON uses arrays, whereas XML supports comments. JSON natively supports arrays as a data type, whereas XML allows comments but does not have a native array type.

Automation APIs and Protocols

Question

What is a difference between JSON and XML in regard to data types?

Options

  • AJSON uses arrays, whereas XML supports comments.
  • BJSON is human-readable, whereas XML is binary.
  • CJSON is binary, whereas XML is human-readable.
  • DJSON uses comments, whereas XML supports arrays.

How the community answered

(49 responses)
  • A
    86% (42)
  • B
    4% (2)
  • C
    8% (4)
  • D
    2% (1)

Explanation

JSON natively supports arrays as a data type, whereas XML allows comments but does not have a native array type.

Topics

#JSON#XML#data formats#arrays vs comments

Community Discussion

No community discussion yet for this question.

Full 300-535 Practice