PostMan里面Json参数编码不一致解决方法
一:报错日志为JSON parse error: Unexpected character (’ ’ (code 160))
注意看==={Unexpected character (’ ’ (code 160))}文章来源:https://www.toymoban.com/news/detail-735254.html
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]
二:解决方法-如下图-点击右侧Beautify按钮将Json参数编码格式化
文章来源地址https://www.toymoban.com/news/detail-735254.html
三:再次请求-解决此问题
到了这里,关于JSON parse error: Unexpected character (‘ ‘ (code 160))-PostMan里面Json参数编码不一致解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!