In Express, app.use(express.json()) is needed to:
- Send HTML
- Connect to MySQL
- Parse JSON request bodies into req.body
- Start HTTPS
Answer
C) Parse JSON request bodies into req.body
The JSON middleware parses incoming JSON.
Computer Science MCQ · More Web Services: Accessing and Creating MCQs · Practise