Exam4Training

Which JSON syntax is valid?

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”]}}

Answer: C

Explanation:

The valid JSON syntax among the options provided is represented by Option C. In JSON (JavaScript Object Notation), data is organized in name/value pairs, and curly braces {} hold objects, while square brackets [] hold arrays. The keys and string values are enclosed in double quotes. The JSON syntax provided in Option C correctly follows these rules, making it a valid JSON object.

References: = For more information on JSON syntax and validation, you can refer to resources like JSONLint1 and W3Schools

Latest 350-401 Dumps Valid Version with 404 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version