原文:JSON parse error: Unrecognized token 'undefined': was expecting ('true', 'false' or 'null')处理

.报错: JSON parse error: Unrecognized token undefined : was expecting true , false or null nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token undefined : was expectin ...

2020-12-25 05:29 0 2214 推荐指数:

查看详情

Unrecognized token 'XXXX': was expecting ('true', 'false' or 'null')

原因是,返回或发送数据格式不规范. 当dataType指定为json后,1.4+以上的jquery版本对json格式要求更加严格.如果不是严格的json格式,就不能正常执行success回调函数. JSON格式总结下 1)键名称:用双引号 括起    2)字符串:用使用双引号 括 ...

Fri Feb 02 00:04:00 CST 2018 0 8868
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM