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.Desenalize (json, typeof(Name));
B.
Return ser.ConvertToType<Name>(json);
C.
Return ser.Deserialize<Name>(json);
D.
Return ser.ConvertToType (json, typeof (Name));
C
0
0
A is also correct. The JavaScriptSerializer also has this method: Deserialize(String, Type).
https://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer(v=vs.110).aspx
0
1
Yes, but that one returns object and not the Name type as expected
0
0