public static int Main(string [] args) { Dog dog = new Dog("Walt", 7); dog.AddNick("Walty"); dog.AddNick("Waof"); dog.AddNick("Woffer"); string json = JavaScriptConvert.SerializeObject(dog); Console.WriteLine(json); return(0); }