Loading Depth Study
Preparing your workspace
JSON is a lightweight text-based data format used to represent structured information.
JSON stands for JavaScript Object Notation, but it is language-independent and widely used by applications and APIs. JSON represents objects using key-value pairs and arrays using ordered values. Common JSON values include strings, numbers, booleans, null, objects, and arrays. JSON has strict syntax, so keys and string values use double quotes.
A REST API can return a user's profile as JSON so a React or Next.js frontend can display it.
{
"id": 101,
"name": "Aman",
"role": "student",
"active": true,
"courses": ["HTML", "JavaScript"],
"profile": null
}The JSON object represents a user with primitive values, an array, and a null value.