JSON parse error: Unexpected character ('}' (code 125)): was expecting double-quote to start field n

Myth丶恋晨 2024-04-18 10:40 152阅读 0赞

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. 检查了发现多了一个逗号。
    在这里插入图片描述
  2. 去掉测试成功,细节很重要。

发表评论

表情:
评论列表 (有 0 条评论,152人围观)

还没有评论,来说两句吧...

相关阅读