JSON
What is it?
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate. Despite its name, JSON is language-independent and is used across virtually all programming languages for data exchange between servers and web applications, APIs, and configuration files.
Practical example
When fetching user data from an API, you might receive a JSON response containing structured data with properties like name, age, email, and an array of hobbies. This structured format makes it easy to access specific values in your JavaScript code using dot notation like user.name or bracket notation for arrays like user.hobbies[0].
Test your knowledge
What type of brackets are used to define an array in JSON?