Published on December 21, 2016 by ProgrammingKnowledge

In this video I am going to show you How can I return JSON from node.js backend to frontend.
if you want to send the response prettified, for some awkward reason, you could use something like JSON.stringify(anObject, null, 3)

It’s important that you set the Content-Type header to application/json, too.

Leave a Reply

1 Comment on "Node.js Tutorial for Beginners 15 – Using node.js for serving JSON Data"

Notify of
avatar

BUCKTHEWORD14
Guest
BUCKTHEWORD14
10 months 29 days ago

mic quality dropped in my opinion

wpDiscuz