Sending multiple responses(res.json) with the same response object in Express.js

Viewed 12330
res.json(Object.assign({}, cart.generateArray()));
res.json(JSON.stringify(cart.totalPrice));

how can i send Sending multiple responses because my code doesn't work

thank you

1 Answers
Related