Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Sending JSON Responses | Section
Building APIs with Express.js

bookSending JSON Responses

メニューを表示するにはスワイプしてください

In backend development, data is usually sent in JSON format.

JSON is a structured way to represent data. It looks like a JavaScript object but is used for communication between systems.

In Express, you can send JSON using res.json():

app.get('/user', (req, res) => {
  res.json({
    name: 'John',
    age: 25
  });
});

This sends a structured response that can be easily used by the frontend.

JSON is commonly used because it is simple, readable, and supported by all modern applications.

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  6

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 1.  6
some-alt