C# Newtonsoft.Json JObject 操作举例

    JArray j = new JArray();

    JObject obj = new JObject(
new JProperty("aa", "")
);
JObject obj2 = new JObject(
new JProperty("bb",
new JObject(new JProperty("cc", ""))
));
obj.Add(obj2);
Response.Write(obj.ToString());
05-11 22:45