大家好,我有一个看起来像这样的 json 数据
[ "Data":[
{"Id":"1 ","EmployeeName":Anil},
]
我从我的控制器动作中得到的
public ActionResult Index()
{
var data = GetData();
return View();
}
public JsonResult GetData()
{
int Param1;
Param1 = 1;
var EmployeeDetails = db.EmployeeDetails.ToList<EmployeeDetail>().Select(e =>
new
{
id=e.EmployeId,
Name = e.EmployeeName
});
return Json(EmployeeDetails , JsonRequestBehavior.AllowGet);
}
现在我想要这个 json 数据到饼图..我该怎么做