About Lesson
What is JSON?
JSON is a lightweight format for storing and transporting data, primarily used in APIs and web applications. It is easy to read and write for humans and easy to parse and generate for machines.
JSON Syntax:
- Data is organized as key-value pairs.
- Keys are strings wrapped in double quotes.
- Values can be strings, numbers, booleans, arrays, or objects.
Example:
JSON
{
"name": "John",
"age": 30,
"isStudent": false,
"hobbies": ["reading", "sports"]
}