Use an anonymous collection of anonymous objects, for example:
Licenses = new [] { new { IsDeleted = "False", ID = "6", AdmissionDate = "2,1999", AdmissionDate_monthSelected = "2" } //, ... and so on }
... and in context: ([edit] Oh, and I have not seen your customer ...)
new { Buyer = new { Firstname = "Jim", Lastname = "Carrey", Company = "Company 10025", ZipCode = "90210", City = "Beverly Hills", State = "CA", Address1 = "Address 10025", }, Phone = "403-222-6487", PhoneExtension = "", SmsNumber = "", Licenses = new [] { new { IsDeleted = "False", ID = "6", AdmissionDate = "2,1999", AdmissionDate_monthSelected = "2" } } }
canon source share