public long Id { get; set; }
public string UserName { get; set; }
public AddressModel Address { get; set; }
public class AddressModel
public string Address { get; set; }
public string Address2 { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Zip { get; set; }
public static void Main()
""userName"": ""fflintstone"",
""address"": ""345 Cave Stone Road"",
userName = default(string),
address = default(string),
address2 = default(string),
var temp = JsonConvert.DeserializeAnonymousType(input, template);
var address = new AddressModel
var customer = new Customer
UserName = temp.userName,
Console.WriteLine("{0} {1}", customer.Id, customer.Address.City);