APIs & Data
JSON (JavaScript Object Notation)
What It Is
A standard format for structuring data, using curly braces and key-value pairs
Analogy
A standardized form everyone agreed to use — like a shipping label with specific fields in specific places
Try It Out
JSONuser.json
| 1 | { |
| 2 | 400">"name": 400">"John Doe", |
| 3 | 400">"age": 30, |
| 4 | 400">"email": 400">"john@example.com", |
| 5 | 400">"isActive": true, |
| 6 | 400">"roles": [400">"user", 400">"admin"], |
| 7 | 400">"address": { |
| 8 | 400">"city": 400">"San Francisco", |
| 9 | 400">"country": 400">"USA" |
| 10 | } |
| 11 | } |
Related Terms in APIs & Data
API (Application Programming Interface)
A waiter at a restaurant — you tell them what you want (request), they bring it from the kitchen (response)
API Key
A VIP pass that tells the bouncer who you are and what you're allowed to do
Request
Placing an order with the waiter
Response
The food the waiter brings back from the kitchen