예제 #1
0
    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);
    }