org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error:
时间: 2023-09-22 22:14:46 浏览: 164
使用JSON.parse将json字符串转换成json对象的时候会出错
This error occurs when Spring is unable to parse the JSON data that it has received. There are several reasons why this might happen, such as invalid JSON syntax, missing or incorrect data types, or a mismatch between the JSON data and the Java object that Spring is trying to map it to. To resolve this error, you should check the JSON data that you are sending to ensure that it is valid and matches the expected format. You should also check the mapping between the JSON data and the Java object to make sure that they are compatible. If the error persists, you can try using a different JSON parser or converter to see if that resolves the issue.
阅读全文