JNCIA-DevOps: Juniper Networks Certified Associate – Automation and DevOps — Question 27
How does YAML differ from JSON in data interchange formats?
Answer options
- A. YAML supports comments
- B. JSON is language specific
- C. JSON is a superset of YAML
- D. YAML is not indentation aware
Correct answer: A
Explanation
The correct answer is A because YAML allows comments, which JSON does not support. Option B is incorrect as JSON is not language specific, it is widely used across various programming languages. Option C is misleading since JSON is not a superset of YAML, but rather a distinct format. Option D is false as YAML is indeed indentation aware and uses indentation to denote structure.