1. What is JSON?
JSON is a lightweight data format used to store and exchange data. It is easy to read and widely used in APIs. Used in web and mobile apps. code JSON { "name": "Java", "type": "Language" }
{
"name": "Java",
"type": "Language"
}
Data format Review key questions below or open the full interactive deck with code examples, bookmarks, and personal study notes.
JSON is a lightweight data format used to store and exchange data. It is easy to read and widely used in APIs. Used in web and mobile apps. code JSON { "name": "Java", "type": "Language" }
{
"name": "Java",
"type": "Language"
}
JSON object stores key-value pairs. Used to represent structured data. Very common in APIs. code JSON { "id": 101, "name": "John" }
{
"id": 101,
"name": "John"
}
JSON array stores multiple values. Used for lists of data. Supports multiple items. code JSON { "skills": ["Java", "Python", "JS"] }
{
"skills": ["Java", "Python", "JS"]
}
JSON inside JSON is nested JSON. Used for complex structures. Common in real APIs. code JSON { "user": { "name": "Alex", "age": 25 } }
{
"user": {
"name": "Alex",
"age": 25
}
}
JSON supports string, number, boolean. Used in real applications. Flexible format. code JSON { "name": "Dev", "age": 22, "active": true }
{
"name": "Dev",
"age": 22,
"active": true
}