Languages
[Edit]
EN

Express.js - send JSON in response

3 points
Created by:
FryerTuck
649

In this article, we would like to show you how to send JSON in response using Express.js.

Quick solution:

 

Practical example

Edit

In this example, we present how to use res.json() method to send JSON  as a response.

 

See also

Edit
  1. Node.js - send JSON in response

References

Edit
  1. Express 4.x - API Reference - res.json()

Alternative titles

  1. Express.js - return JSON in response
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join