JSON Structure
Data Representation: JSON represents data in key-value pairs. Each key is a string enclosed in double quotes, followed by a colon, and then its corresponding value. Values can be strings, numbers, arrays, objects, booleans, or null.
{
"name": "Alakh",
"age": 30,
"isStudent": false,
"courses": ["Math", "Science"],
"address": {
"city": "Panaji",
"zipcode": "189001"
}
}
What is JSON
JSON, short for JavaScript Object Notation, is a lightweight data-interchange format used for transmitting and storing data. It has become a standard format for web-based APIs due to its simplicity and ease of use.