javascript - What are express.json() and express.urlencoded()? -
I can not find any documents at express.json () and express.urlencoded (). What do each of them do?
gives the middleware which is both returns the middleware that just parses returns the intermediate returns that only parses the jesen and urlencoded are both middleware Part of . This is what README says:
BodyParser ([option])
json and urlencoded both < Code>. bodyParser.json ([options])
Jason . Options:
Strict - Only analyze the objects and arrays range reviver - JSON.parse () passed The bodyParser.urlencoded ([options])
urlencoded with the module:
Comments
Post a Comment