HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of 解决办法
前端用ajax通过json传给后端,传递的数据是一个列表localStorage.getItem('answers')。[{"id":36,"ans":["pig","dog"]},{"id":37,"ans":["tiger","pig"]},{"id":38,"ans":["tiger","pig"]}]ajax代码:varjson=localStorage.getItem('answers'