Which JSON syntax is valid?
Which JSON syntax is valid?
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.
The correct answer is C Explanation: This JSON can be written as follows: { ‘switch’: { ‘name’: ‘dist1’, ‘interfaces’: [‘gig1’, ‘gig2’, ‘gig3’] }}
Not Valid script
can't see the answers correctly but the only option that works is: { "switch": { "name": "dist1", "interfaces": ["gig1", "gig2", "gig3"] } } tested in JSONLint
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!)
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'])}
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”]}}
I can't make out what the fork these symbols are...
I coppied all the text and replaced them all with double quotes. It all makes sense after that.
Are we supposed to discern what the heck is written in these answers? This is ridiculous.
The answers I see on screen are just gibberish.
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)
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
What the format !? This symbols are not belong to the Json format!
Hard to see in this format but it is C
It should be C
Admins, please fix formatting of the original multiple choice. Instead of single quotes and commas there are a bunch of strange characters such as "ג€".
C is correct if we replace this weird ג€ with this ".
Guys does cisco exam use the same ג€ instead of double qoute, coz it will be terrible
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