Node.js · Junior · Question 62 of 75

How do you read the JSON body of a POST request in Express?

Explanation

Express doesn't parse bodies by default. express.json() parses application/json; express.urlencoded() handles HTML forms.

Further reading

Problem with a question

Node.js · Junior · question 62

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz