How does the YAML data format structure differ from JSON?

IT Questions BankCategory: CCNA 3 v7How does the YAML data format structure differ from JSON?

How does the YAML data format structure differ from JSON?

  • YAML uses brackets and commas.
  • YAML uses end tags.
  • YAML uses hierarchical levels of nesting.
  • YAML uses indentations.

Explanation: YAML Ain’t Markup Language (YAML) separates the key/value pairs using a colon without quotation marks. YAML also uses indentation to define its structure, without using brackets or commas. Extensible Markup Language (XML) data is enclosed within a related set of tags: <tag>data</tag>. JavaScript Object Notation (JSON) encloses key/value pairs in braces, { }. Keys must be strings within double quotation marks, “ ”. A key is separated from a value by a colon.

Exam with this question: 14.7.2 Module Quiz - Network Automation

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x