使web api 返回json类型数据
在Global.asax文件里添加
// 使api返回为json GlobalConfiguration.Configuration.Formatters.XmlFormatter.SupportedMediaTypes.Clear();