C# Newtonsoft.Json JObject 操作

C# Newtonsoft.Json JObject 操作举例

    JArray j = new JArray();

    JObject obj = new JObject(
            new JProperty("aa", "111")
            );
    JObject obj2 = new JObject(
                    new JProperty("bb",
                        new JObject(new JProperty("cc", "33"))
                        ));
    obj.Add(obj2);
    Response.Write(obj.ToString());

 

posted on 2015-01-18 13:06  狼来了  阅读(8231)  评论(0编辑  收藏  举报