JSON parse error: Unexpected character ('}' (code 125)): was expecting double-quote to start field n
·
1.测试数据 ,postman 里面message出现这样的报错
JSON parse error: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (’}’ (code 125)): was expecting double-quote to start field name\n at [Source: (PushbackInputStream); line: 4, column: 2]
2.百度翻译(JSON分析错误:意外字符(’}’(代码125)):应以双引号开头的字段名;嵌套异常为com.fasterxml.jackson.core.json parse exception:意外字符(’}’(代码125)):应以双引号开头的字段名位于[source:(pushbackinputstream);line:4,列:2])
- 检查了发现多了一个逗号。
- 去掉测试成功,细节很重要。
更多推荐
已为社区贡献1条内容
所有评论(0)