public JsonResult select(string url) { JsonResult json = new JsonResult(); json.Data = new { Data = WeatherDal.WeatherSelete(url) }; //反序列化 //Dictionary<string, string> jsonDict = JsonConvert.DeserializeObject<Dictionary<string, string>>(HTTPService.Get(url)); json.JsonRequestBehavior = JsonRequestBehavior.AllowGet; return(json); }
public void TestMethod1() { var json = WeatherDal.WeatherSelete("101220101") ; }