using System.Collections.Generic;
public static void Main()
""Contact"": ""John Doe"",
""Address1"": ""PO Box 111"",
""Contact"": ""Jane Doe"",
""Address1"": ""PO Box 222"",
var customerList = JsonConvert.DeserializeObject<CustomerList>(json);
foreach (var obj in customerList.Customers)
Console.WriteLine("Name: " + obj.Name);
Console.WriteLine("Code: " + obj.Code);
Console.WriteLine("Contact: " + obj.Address.Contact);
Console.WriteLine("Address1: " + obj.Address.Address1);
Console.WriteLine("City: " + obj.Address.City);
Console.WriteLine("State: " + obj.Address.State);
Console.WriteLine("Postcode: " + obj.Address.Postcode);
Console.WriteLine("Country: " + obj.Address.Country);
public string Contact { get; set; }
public string Address1 { get; set; }
public string Address2 { get; set; }
public string Address3 { get; set; }
public string City { get; set; }
public string Postcode { get; set; }
public string State { get; set; }
public string Country { get; set; }
public string Code { get; set; }
public string Name { get; set; }
public Address Address { get; set; }
public class CustomerList
public List<Customer> Customers { get; set; }