exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 311 discussion

Actual exam question from Cisco's 350-401
Question #: 311
Topic #: 1
[All 350-401 Questions]

Which data is properly formatted with JSON?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
netpeer
Highly Voted 4 years ago
B is correct as all must end with comma except the last statement before }
upvoted 28 times
RhJ72
3 years, 8 months ago
netpeer is correct. The question asks for correct json formatting. B is the only answer that has correct json formatting. The question around integer is irrelevant. If you put 25, it's an integer, if you put "25", it's a string. from a formatting perspective, both are correct.
upvoted 6 times
...
nushadu
2 years, 5 months ago
A - syntax error - no commas at the end of the lines C - syntax error - "name" value Peter must be a type string (in quotas -> "Peter")
upvoted 2 times
...
...
Zendahr
Most Recent 9 months, 3 weeks ago
B is correct
upvoted 1 times
...
[Removed]
11 months, 2 weeks ago
B is correct
upvoted 1 times
...
slacker_at_work
1 year, 2 months ago
To validate JSON { "name":"Peter", "age":"25", "likesJson":true, "characteristics":["small","strong","18"] }
upvoted 2 times
...
eddgg
1 year, 8 months ago
b is the right option
upvoted 1 times
...
[Removed]
1 year, 9 months ago
B is correct, there is no need for a comma at end of the last statement
upvoted 2 times
...
kewokil120
2 years, 4 months ago
B is correct
upvoted 2 times
...
John13121
2 years, 4 months ago
B is valid, verified with JsonValidator...
upvoted 1 times
...
nushadu
2 years, 5 months ago
technically B & D are both correct, I mean Python syntax will not raise any errors ...
upvoted 2 times
nushadu
2 years, 5 months ago
A - syntax error - no commas at the end of the lines C - syntax error - "name" value Peter must be a type string (in quotas -> "Peter")
upvoted 1 times
...
...
Rockford
3 years, 11 months ago
B is correct, checked in JSONLint validator numbers 18 and 25 can be in "" or not still valid.
upvoted 3 times
...
hsitar
4 years, 1 month ago
Correct answer should be D
upvoted 1 times
jas26says
4 years ago
the comma at the end makes the answer wrong.
upvoted 1 times
Adeleke
4 years ago
should the age 25 be in quotation???
upvoted 2 times
lukaszr
3 years, 9 months ago
in quotation 25 is string, without 25 is integer.
upvoted 1 times
...
...
...
Feliphus
2 years, 4 months ago
No, because it has a final unneeded comma
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago