当前位置:首页 > Web开发 > 正文

Requests库发送post请求,传入接口参数后报JSON parse error

2024-03-31 Web开发

{"timestamp":"2020-01-08T14:42:40.894+0000","status":400,"error":"Bad Request","message":"JSON parse error: Cannot deserialize instance of `java.util.ArrayList` out of VALUE_STRING token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.util.ArrayList` out of VALUE_STRING token\n at [Source: (PushbackInputStream); line: 1, column: 1]","path":"/home/brand/create"}

原因:发送post请求,传入参数,想固然的以为是{}形式,,功效挪用的接口是[{}]形式,对接口了解不够。

技术图片

Requests库发送post请求,传入接口参数后报JSON parse error

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32002.html