You need to serialize the Location object as a JSON object. Which code segment should you insert at line 20?
A. New DataContractSerializer(typeof(Location))
B. New XmlSerializer(typeof(Location))
C. New NetDataContractSenalizer()
D. New DataContractJsonSerializer(typeof(Location))
Answer:D
You need to serialize the Location object as a JSON object. Which code segment should you insert at line 20?
A. New DataContractSerializer(typeof(Location)) B. New XmlSerializer(typeof(Location)) C. New NetDataContractSenalizer() D. New DataContractJsonSerializer(typeof(Location))