what is json
Quick Scoop
JSON stands for JavaScript Object Notation. It is a lightweight, text- based format for storing and exchanging data, and it is easy for both people and computers to read.
What JSON Looks Like
JSON uses:
- Objects with curly braces
{ }. - Arrays with square brackets
[ ]. - Key-value pairs like
"name": "Ava". - Common values such as strings, numbers, booleans, null, arrays, and nested objects.
Example:
json
{
"name": "Ava",
"age": 25,
"isStudent": false,
"skills": ["Python", "SQL"]
}
Why People Use It
JSON is widely used in web apps because it makes it simple for a browser, server, or API to exchange structured data. It is also language-independent, so many programming languages can read and write it easily.
Key Rule
Standard JSON does not allow comments, and keys must be in double quotes.
If you want, I can also show you how JSON differs from JavaScript objects or XML.