Sometimes all you need it the following JS command, try it first: Thank you Hasan, I appreciate your comment.The original question is about parsing JSON from a POST message in the Express framework. Without the BodyParser middleware, the JSON data will not exist in the body property of I send a POST WebRequest from C along with a json object data. And want to receive it in a node. js server like thisUpdate: use body-parser for express 4. json node.js express content-type body-parser | this question edited Mar 4 16 at 16:52 asked Mar 4 16 at 16:06 Jordan 6 4 how are you sending json to server? Zeeshan Hassan Memon Mar 4 16 at 16:10 hi, im sending the post from an ios aplication and using the Advanced REST client I have a simple server where i just prints a json to the screen when its posted. This is my codeBut the server just prints undefined. What am i doing wrong? you havent defined usage of express.bodyParser(). Express.js Tutorial What is Express.js Install Express.js Express.js Request Express.js Response Express.js Get Express.js Post Express.js Routing Express.js Cookies Express.js File Upload Express.jsThis method returns response in JSON format with JSONP support.
Examples Further Reading More Express routing: Learn to Use the Express 4.0 Router. POST Parameters. npm install body-parser --save. Now that we have that package and it has been added to our package. json thanks to the --save modifier, we have to configure it in our server.js file. Express.js is really lightweight. I used many popular web frameworks like spring or spring bot in java, asp .