Implementing and Operating Cisco Enterprise Network Core Technologies (ENCOR) — Question 112
Which JSON syntax is valid?
Answer options
- A. {"switch": "name": "dist", "interfaces": ["gig1", "gig2", "gig3"]}
- B. {/"switch/": {/"name/": "dist", /"interfaces/": ["gig1", "gig2", "gig3"]}}
- C. {"switch": {"name": "dist", "interfaces": ["gig1", "gig2", "gig3"]}}
- D. {"switch": ("name": "dist", "interfaces": ["gig1", "gig2", "gig3"])}
Correct answer: C
Explanation
Option C is correct because it follows the proper JSON syntax, with correct use of braces and quotation marks. Options A and D are incorrect due to improper placement of colons and parentheses, while Option B uses slashes incorrectly, making it invalid JSON syntax.