I'm not sure if this is possible, but I would like to see the whole content of the req object in client side.
const express = require('express');
const app = express();
app.get('/', (req, res) => {
// send req object to the client
res.json(req);
});
app.listen(5000, () => {
console.log('Server successfully started on port 5000');
});
This will result in an error like:
TypeError: Converting circular structure to JSON