You just need to put the experss.json() code above the line where you are importing/defining the route.
.then(() => {
app.use(express.json());
app.use('/items', itemsRouter);
app.listen(3000, () => {
console.log('server started');
});
})
.catch(err => {
console.log("error, database not connected or:", err.message);
})
CLICK HERE to find out more related problems solutions.