📄JavaScript Object Notation (JSON)
Also known as JSON, JSON file
A plain text format for data, made of names and values. Most APIs use it.
Think of it like
Think of it like a form with labels and blanks. Each label has its answer right next to it.
Example
Jack's app asks a weather API for London. The reply is JSON with the temperature, the wind and the chance of rain.
Why it matters
JSON is the common language of the web. If two programs talk, it is very likely in JSON.
Definition
Example code
json
{
"name": "Emma",
"age": 36,
"admin": true,
"skills": ["Python", "Git"]
}Common mistake
Key takeaways
- 1Names and values. Each value has a label in quotes.
- 2Plain text. People and programs can both read it.
- 3Strict rules. One stray comma breaks the file.