The body-parser
middleware has been bundled with Express since v4.16.0, so there’s no need to install it.
app.use(express.json());
…is all you need to parse JSON request bodies.
It’s so easy to end up cargo culting code between applications that you miss what’s been there in the documentation for years!
Thanks to Reddit user anatolhiman for letting me know about this.