The Json
helper method[
^] expects the object you want to return, not an already-serialized JSON string.
Remove the call to
JsonConvert.SerializeObject
, and just pass in the list:
public JsonResult GetData()
{
List<Employee> emplist = new List<Employee>();
...
return Json(emplist, JsonRequestBehavior.AllowGet);
}