Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 181
What is the difference between YAML and JSON data structure?
Answer options
- A. YAML uses spaces; JSON uses parentheses
- B. YAML uses indentation; JSON uses brackets and braces
- C. YAML uses brackets and braces; JSON uses indentation
- D. YAML uses parentheses; JSON uses spaces
Correct answer: B
Explanation
The correct answer is B because YAML relies on indentation to denote structure, while JSON uses brackets and braces to define objects and arrays. The other options incorrectly describe the syntax and structure of either YAML or JSON.