Question
Multiple Choice
An applicaton receives JSON data in the following format:
The applicaton 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
(json)) - B. Return ser.DeserializeObject(json))
-
C. Return ser.Deserialize
(json)) - D. Return (Name)ser.Serialize(json))