[bug] Unrecognized token 'code': was expecting (JSON String, Number, Array, Object,'true', 'false' or 'null')

JSON格式有误,需用JSON.stringify()函数转换一下

参考

https://www.cnblogs.com/sunyanblog/p/13788740.html

https://www.runoob.com/js/javascript-json-stringify.html

原文地址:https://www.cnblogs.com/cxc1357/p/14423674.html