Lesson 3 of 8
JSON Format
JSON (JavaScript Object Notation) is the standard format for API data. It looks like JavaScript objects but is language-independent. APIs send and receive JSON because it is lightweight and easy to parse.
APIS
{
"id": 1,
"name": "Ali",
"email": "[email protected]",
"isActive": true,
"roles": ["admin", "editor"],
"profile": {
"age": 25,
"country": "Denmark"
}
}