Error: syntax error – unexpected token P in JSON at position 0
Please check the error log carefully to see if the format of the data type from the front end to the back end is correct.
For example, the background needs data in JSON format, while the front-end data format is not in JSON format.
You can use: JSON.pase () and JSON.stringify ()