Which code segment should you insert at line 10?

An application receives JSON data in the following format:

The application includes the following code segment. (Line numbers are included for reference only.)

You need to ensure that the ConvertToName() method returns the JSON input string as a Name object.

Which code segment should you insert at line 10?
A . Return ser.ConvertToType<Name>(json);
B . Return ser.DeserializeObject(json);
C . Return ser.Deserialize<Name>(json);
D . Return (Name)ser.Serialize(json);

Answer: C

Explanation:

JavaScriptSerializer.Deserialize<T> – Converts the specified JSON string to an object of type T.

http://msdn.microsoft.com/en-us/library/bb355316.aspx

Latest 70-483 Dumps Valid Version with 288 Q&As

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments