using System.Collections.Generic;
using System.Xml.Serialization;
public static void Main()
""streetAddress"": ""21 2nd Street"",
""postalCode"": ""10021""
""number"": ""212 555-1234""
""number"": ""646 555-4567""
""streetAddress"": ""10 Main Street"",
""postalCode"": ""08837""
""number"": ""732 555-1234""
""number"": ""609 555-4567""
using (var r = ChoJSONReader<Employee>.LoadText(json))
using (var w = new ChoXmlWriter<Employee>(Console.Out))
public string streetAddress { get; set; }
public string city { get; set; }
public string state { get; set; }
public string postalCode { get; set; }
public string type { get; set; }
public string number { get; set; }
[ChoXmlRecordObject(XPath = "Emps/Emp")]
public string firstName { get; set; }
public string lastName { get; set; }
public int age { get; set; }
public Address address { get; set; }
public List<PhoneNumber> phoneNumber { get; set; }