当前位置:   article > 正文

JSON parse error: Unexpected character (‘ ‘ (code 160))-PostMan里面Json参数编码不一致解决方法_unexpected character (' ' (code 160))

unexpected character (' ' (code 160))

PostMan里面Json参数编码不一致解决方法

一:报错日志为JSON parse error: Unexpected character (’ ’ (code 160))

注意看==={Unexpected character (’ ’ (code 160))}

2023-07-18 16:35:57.624 ERROR 29624 --- [  XNIO-1 task-1] o.s.c.log.error.RestExceptionTranslator  : 消息不能读取:JSON parse error: Unexpected character (' ' (code 160)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (' ' (code 160)): was expecting double-quote to start field name
 at [Source: (PushbackInputStream); line: 1, column: 4]
2023-07-18 16:38:07.334 ERROR 29624 --- [  XNIO-1 task-1] o.s.c.log.error.RestExceptionTranslator  : 消息不能读取:JSON parse error: Invalid UTF-8 start byte 0xa0; nested exception is com.fasterxml.jackson.core.JsonParseException: Invalid UTF-8 start byte 0xa0
 at [Source: (PushbackInputStream); line: 1, column: 23]
2023-07-18 16:40:06.600 ERROR 29624 --- [  XNIO-1 task-1] o.s.c.log.error.RestExceptionTranslator  : 消息不能读取:JSON parse error: Unexpected character (' ' (code 160)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (' ' (code 160)): was expecting double-quote to start field name
 at [Source: (PushbackInputStream); line: 1, column: 46]

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

二:解决方法-如下图-点击右侧Beautify按钮将Json参数编码格式化

在这里插入图片描述

三:再次请求-解决此问题

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/679561
推荐阅读
相关标签
  

闽ICP备14008679号