jsonparser
Gets the whole content in the request as a json to the property json
Install
$ npm install jsonparser
API
const jsonparser = ;
jsonparser(options)
This middleware adds a req.json
property which contains the JSON parsed request body
Options
strict
a truthy value to check for content type header (default: false).type
request content-type to parse (default: json).bodyCheck
a truthy value for empty body check (default: false).
Example
const bodyparser = ;const jsonparser = ;const app = ; app;app;app;