JSON parse error: Unrecognized token 'undefined': was expecting ('true', 'f

1.报错:

JSON parse error: Unrecognized token 'undefined': was expecting ('true', 'false' or 'null'); nested exception is com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'undefined': was expecting ('true', 'false' or 'null') at [Source: java.io.PushbackInputStream@655a8572; line: 1, column: 11]

2.分析:

很明显是json转换出问题,所以把问题范围限制在了前端。

3.处理:

使用JSON.Stringfy()将JavaScript 值转换为 JSON 字符串传到后台,报错解决。

上一篇:Jackson


下一篇:python 报错之解决办法