索尔 Saule是ASP.Net Web API 2的JSON API(1.0版)库。使用NuGet安装Saule: Install-Package saule 要使用Saule,您必须定义包含有关您的域的信息的资源: public class PersonResource : ApiResource { public PersonResource () { Attribute ( " FirstName " ); Attribute ( " LastName " ); Attribute ( " Age " );