I am currently learning node and express. But when I require and use body-parser my code editor(VS Code) says that it is deprecated. How do I work with this? I will link the image of my editor.
Body parser is now added to Express. You can use it like the following:
app.use(express.json());
You can add this middleware to the code which will then be able to use json methods.