Quick Answer
HTTP requests from clients arrive with bodies (JSON, form data, raw text). By default, Express doesn't parse them รขโฌโ you must add middleware. express.json() parses JSON bodies; express.urlencoded() parses form data. Without body parsing, req.body is undefined. These are included in Express 4.16+ รขโฌโ no need for the separate body-parser package.
Answer
Body parsing converts request payloads to usable objects. express.json() handles JSON bodies.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.