https://blog.csdn.net/lovegonghui/article/details/50293629 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using GongHuiNewtonsoft.Json.Linq; namespace JSONDemo { class Program { static void Main(string[] args) { List<Post> posts = new List<Post> { new Post { Title="匿名类型", Description="匿名类型创建一个JObject", Link="http://write.blog.csdn.net/postedit/50293629", Categories=new List<string> { "JObject", "匿名类型" } } }; JObject o = JObject.FromObject(new { channel = new { title = "Linq的测试", link = "http://www.microsoft/Linq.com", description = "这是JOSN在Linq在的测试", item = from p in posts orderby p.Title select new { title=p.Title, link=p.Link, description=p.Description, categories=p.Categories } } } ); Console.WriteLine(o.ToString()); } } }