如题,如何存储一个json数据
db.query("INSERT table SET?",[params],callback)
params 网页一个application/json 格式数据
json格式数据中有个key的值是json,就是嵌套json
存储的时候查看数据库存的是Object object
高洛峰2017-04-17 12:05:43
That means your object is a js object and has not been converted into a json string. You have to store the string directly into the database.