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

猜你喜欢

转载自blog.csdn.net/weixin_43187491/article/details/100559035