exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 2 question 143 discussion

Actual exam question from Microsoft's 70-483
Question #: 143
Topic #: 2
[All 70-483 Questions]

DRAG DROP -
You need to validate whether string strJson is a valid JSON string.
You write the following code:

How should you complete the code? To answer, drag the appropriate code segments to the correct targets in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
serializer = new DataContractJsonSerializer();
var result = serializer.ReadObject<Dictionary<string, object>>(StrJson);

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
dosper
Highly Voted 5 years, 10 months ago
2,3 are correct. DataContractJsonSerializer doesn't have generic method ReadObject<T>()
upvoted 26 times
...
IF_Elias
Highly Voted 5 years, 10 months ago
3,2 'DataContractJsonSerializer ' does not contain a constructor that takes 0 arguments
upvoted 26 times
sscooter1010
5 years, 4 months ago
Yes, tested - this is correct
upvoted 7 times
...
...
xman
Most Recent 5 years, 4 months ago
The correct answer is: JavaScriptSerializer Deserialize
upvoted 20 times
...
Igris
5 years, 5 months ago
JavascriptSerializer and Deserialize https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.javascriptserializer?view=netframework-4.8
upvoted 16 times
sscooter1010
5 years, 4 months ago
Yes - tested and correct
upvoted 7 times
...
...
supersunny
5 years, 11 months ago
1, 4 will do it
upvoted 1 times
noussa
4 years, 5 months ago
The correct answer is: JavaScriptSerializer Deserialize
upvoted 3 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 ...