SyntaxFix
Write A Post
Hire A Developer
Questions
try { var data = {foo: "bar"}; res.json(JSON.stringify(data)); } catch (e) { res.status(500).json(JSON.stringify(e)); }