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
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);