Node.js · APIs · Junior · Best Practice
How do you handle request body parsing safely?
Short Interview Answer
Use size limits, content-type checks, and streaming parsers; reject unexpected types.
Detailed Explanation
Unbounded JSON parsing enables DoS. Prefer established middleware with limits. Don't eval bodies.