Concept Flow - res.json for JSON responses
Client sends HTTP request
Express route handler receives request
Handler prepares JavaScript object
Call res.json(object)
Express converts object to JSON string
Express sets Content-Type: application/json
Express sends JSON response to client
Client receives and parses JSON
This flow shows how Express takes a JavaScript object, converts it to JSON, sets the right headers, and sends it back to the client.