Which JSON syntax is valid?

IT Questions BankCategory: CCNPWhich JSON syntax is valid?
Which JSON syntax is valid? 1ITExamAnswers Staff asked 1 month ago
Question:
Which JSON syntax is valid?

  • A. {“switch”: “name”: “dist1”, “interfaces”: [“gig1”, “gig2”, “gig3”]}
  • B. {/“switch/”: {/“name/”: “dist1”, /“interfaces/”: [“gig1”, “gig2”, “gig3”]}}
  • C. {“switch”: {“name”: “dist1”, “interfaces”: [“gig1”, “gig2”, “gig3”]}}
  • D. {‘switch’: (‘name’: ‘dist1’, ‘interfaces’: [‘gig1’, ‘gig2’, ‘gig3’])}

Explanation: This JSON can be written as follows:
{
‘switch’: {
‘name’: ‘dist1’,
‘interfaces’: [‘gig1’, ‘gig2’, ‘gig3’]
}}

More Questions: CCNP 350-401 Dumps


Related Articles