所需DLL:Newtonsoft.Json.dll
BaiDuTianQi _Model = JsonConvert.DeserializeObject<BaiDuTianQi>(jsonmsg); //某实体MODEL
MODEL转JSON
return Json(_BaiDuTianQi, JsonRequestBehavior.AllowGet);
时间: 2024-10-07 13:50:42
所需DLL:Newtonsoft.Json.dll
BaiDuTianQi _Model = JsonConvert.DeserializeObject<BaiDuTianQi>(jsonmsg); //某实体MODEL
MODEL转JSON
return Json(_BaiDuTianQi, JsonRequestBehavior.AllowGet);