using System.Collections.Generic;
public static void Main()
var student = new Student { Name = "Joe Schmoe" };
var courses = new List<Course>
new Course { Title = "Underwater Basket Weaving 101" },
new Course { Title = "History of Pancakes 102" }
var anon = new { Student = student, Courses = courses };
var json = JsonConvert.SerializeObject(anon, Formatting.Indented);
Console.WriteLine("\n---------------------------------------\n");
dynamic obj = JsonConvert.DeserializeObject(json);
student = obj.Student.ToObject<Student>();
courses = obj.Courses.ToObject<List<Course>>();
Console.WriteLine("Student: " + student.Name);
foreach (Course c in courses)
Console.WriteLine("Course: " + c.Title);
public string Name { get; set; }
public string Title { get; set; }