bodyparser专题

Unexpected token d in JSON at position 5, check bodyParser config错误解决

错误原因:json格式不对 { desc="设备1", iotProjectId=11 } 解决:通过json在线校验格式校验json格式,找出错误原因,修改 在线JSON校验格式化工具(Be JSON) 修改: {"desc": "设备","iotProjectId": 11}

Most middleware (like bodyParser) is no longer bundled with Express

在cmd命令行里,输入node app.js     提示:            Error: Most middleware (like bodyParser) is no longer bundled with Express and m ust be installed separately. Please see https://github.com/senchalabs/