Lesson 1 of 67 minJSON Foundations
What JSON Is and Where It Appears
JSON is a text format for structured data. You see it in APIs, config files, app settings, and exports.
Core concepts
- Objects use key-value pairs.
- Arrays hold ordered lists.
- JSON is text, not a database.
- APIs often send and receive JSON.
Example
{
"name": "BuildQuill",
"type": "tool site",
"features": ["format", "convert", "validate"]
}Practice
Write a JSON object that describes a course with a title, level, duration, and a list of topics.
Checklist
- Use double quotes around keys.
- Use commas between fields.
- Use an array for multiple topics.
Quiz
Which statement is true about JSON?