Response
Course: Intro to HTTP - chapter 7
The response represents what the server returns you in response to the request.
It could be
- Plaintext data - Not used as often
- HTML - If it is a website
- JSON Data - If you want to fetch some data (user details, list of todos…)
JSON stands for JavaScript Object Notation. It is a lightweight, text-based format used for data interchange
{ "name": "John Doe", "age": 30, "isEmployed": true, "address": { "street": "123 Main St", "city": "Anytown" }, "phoneNumbers": ["123-456-7890", "987-654-3210"]}