I\'ve written the following piece of code in my nodeJS/Expressjs server:
app.post(\'/settings\', function(req, res){ var myData = { a: req.param(\'a\
In express 4 you should do:
res.status(200).json({status:"ok"})
instead of the deprecated:
res.json(200,{status:"ok"})