In Express, app.use(express.json()) is needed to:

  1. Send HTML
  2. Connect to MySQL
  3. Parse JSON request bodies into req.body
  4. 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