SyntaxError:JSON.parse:JSON数据角度2的第1行第1列中的意外字符
问题描述:
当我将数据发布到服务器时,我在数据库中收到此错误语法错误:JSON.parse:JSON数据第1行第1列的意外字符[了解更多]",但是无论如何,数据仍然进入数据库.可能有什么错误?
When i post data to my server , i get this error in my database " SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data[Learn More]" but anyway the data still goes into the database. What could be there error?
答
服务器很可能返回了错误页面(无效的JSON),请在开发人员工具的网络"标签中检查响应.
Most probably server returned error page (which is not valid JSON), check response in network tab in developer tools.