Exam 350-401 All QuestionsBrowse all questions from this exam
Question 315

Which JSON syntax is valid?

    Correct Answer: C

    The correct JSON syntax includes key-value pairs where keys and string values are enclosed in double quotes. Additionally, nested objects should be enclosed in curly braces and arrays should be enclosed in square brackets. Option C follows this format correctly: it uses double quotes for keys and string values and correctly nests the object under the key 'switch', which contains the nested keys 'name' and 'interfaces' with their respective values.

Discussion
hencheiOption: C

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

ABC123

Not Valid script

RockfordOption: C

can't see the answers correctly but the only option that works is: { "switch": { "name": "dist1", "interfaces": ["gig1", "gig2", "gig3"] } } tested in JSONLint

PureInertiaCopy

Admin! Could you please fix the symbols! (At my time of writting, the quotation marks are replaced with this weird symbols! (, ג€) It makes it really goddamn hard to read!)

teikitizOption: C

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'])}

xziomal9Option: C

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

[Removed]

I can't make out what the fork these symbols are...

PureInertiaCopy

I coppied all the text and replaced them all with double quotes. It all makes sense after that.

Burik

Are we supposed to discern what the heck is written in these answers? This is ridiculous.

JochenStacker

The answers I see on screen are just gibberish.

Jared28Option: C

As per the practice exam in (it's just as badly formatted there too): CCNP: ENCOR: 350-401: CCNP ENTERPRISE: Cisco Certified Network Professional: Implementing and Operating Cisco Enterprise Network Core Technologies (ENCOR)

wr4netOption: C

json data is typically key:value pairs in a rigid hierarchy, like a tree. key elements at the same level are separated by commas. keys and values are found in quotes if they are strings, but not always if its a binary (like true/false), they follow this format {"K":"V"} no / are used in json. if multiple values for one key exist, they are encompassed in brackets - not braces, like this: {"K": ["V1","V2"]} if a data key breaks off into sub key-value pairs, it will have a brace after it, like the start of hierarchy above it. {"K": {["K2":"V1","K2","V2"]} in this case, the value element for "K" includes all the stuff in brackets, which are themselves K:V pairs

Parot

What the format !? This symbols are not belong to the Json format!

ougtyOption: C

Hard to see in this format but it is C

aohashiOption: C

It should be C

a197cbf

Admins, please fix formatting of the original multiple choice. Instead of single quotes and commas there are a bunch of strange characters such as "ג€".

SeMo0o0oOption: C

C is correct if we replace this weird ג€ with this ".

Shri_Fcb10Option: C

Guys does cisco exam use the same ג€ instead of double qoute, coz it will be terrible

outnumber_gargle024

for anyone wondering ab the symbols, the server they are using likely autoconverts quotes into these symbols to protect against sql injection sauce: like one week of college, so prob incorrect here