I used angular to post an object to the node server, similar to:
var obj = {};
obj.title = "title";
obj.data = {expire:new Date(), detail:{data:[1,2,3]}}
$http.post('host', {obj:obj})
.success(function(suc){
//success callback
})
Node uses express3.x. The data in req.body seems to have been processed by toString(), and the nested objects are parsed into empty strings. I don’t know what to do?
Use the browser console
such as the chrome console to check what the data sent looks like
whether it is correctly converted into a JSON format string