- 注册时间
- 2016-6-2
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 355
- 精华
- 0
- 帖子
- 92
|
dforce 发表于 2016-6-2 16:44
MiniUI只是前端控件,和后台无关,报json错误是你后台返回的数据不对,请检查后台返回的数据 ...
StringBuilder _strResult = new StringBuilder();
DataTable ds;
try
{
DictionaryType DalDictionaryType = new DictionaryType();
Model.DictionaryType modelDictionaryType = new Model.DictionaryType();
ds = DalDictionaryType.GetList(modelDictionaryType);
}
catch (Exception)
{
throw;
}
string s= JsonConvert.SerializeObject(ds);
return JsonConvert.SerializeObject(ds);
我直接序列化返回的json值,
[
{
"DictionaryTypeId": "1",
"DictionaryTypeName": "调查设备3",
"DictionaryNum": "003",
"Sort": "3",
"Remark": null
},
{
"DictionaryTypeId": "2",
"DictionaryTypeName": "调查设备2",
"DictionaryNum": "002",
"Sort": "2",
"Remark": null
},
{
"DictionaryTypeId": "3",
"DictionaryTypeName": "调查设备1",
"DictionaryNum": "001",
"Sort": "1",
"Remark": null
}
]
这个json我校验过,没有错误,但是还是报错
|
|