DataTables警告:无法解析来自服务器的JSON数据。

时间:2014-05-09 12:21:02

标签: asp.net asp.net-mvc-4 datatable

这是由asp.net mvc3中的JSON格式错误引起的。 它在2012年的visual studio中运行,但在2013年的visual studio中却没有。

    {"sEcho":"1","iTotalRecords":7,"iTotalDisplayRecords":7,"aaData":
[{"DeductionId":1,"DeductionName":"PAG-IBIG LOAN","IsActive":true},
{"DeductionId":2,"DeductionName":"SSS LOAN","IsActive":true},
{"DeductionId":3,"DeductionName":"CASH ADVANCE","IsActive":true},
{"DeductionId":4,"DeductionName":"HEALTH CARE","IsActive":true},
{"DeductionId":5,"DeductionName":"HOSPITAL LOAN","IsActive":true},
{"DeductionId":6,"DeductionName":"CANTEEN A","IsActive":true},
{"DeductionId":7,"DeductionName":"CANTEEN B","IsActive":true}]}

0 个答案:

没有答案