# Your First Express App: Routes and JSON

Express turns each endpoint into one line that names its method and path, answers with res.json, and reads a JSON body from req.body once express.json() is switched on, so a small API takes a few lines instead of sixty.

![Cheat sheet: Your First Express App: Routes and JSON](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/6162b0898ffc426a9342f04b9fe9ce21.webp)

- Category: Node.js
- Level: Apprentice
- Tags: 201 Created, Express, express.json(), nodejs, res.json(), rest-api, Route in Express
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-express-first-app-cheat-sheet
