Give parameter with json format in sails
问题 In my controllers and other areas where there's a req object, I can access request parameters using req.params('username') . This is fine for normally POSTed data, but I want my API to accept a JSON object in the request body and convert it to parameters that I can still access with req.params() . So for example, if I send this as the POST request body to my controller action: {'username': 'Chris', 'password': 'mypass'} I want to be able to get the username and password using req.params(