node.js - Parsing postdata value in nodejs -


i have post data in format below

authinfo={"user":"1","password":"a"} 

how key ie authinfo. stuck here! req.query did not work out. appreciated.

data transmitted via post found in req.body.

for example:

req.body.authinfo

also: need data parser enabled, otherwise post data not decoded. assume use express, need app.use(express.bodyparser()).


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -