JSON, which stands for "JavaScript Object Notation," is a lightweight data interchange format that is easy for both humans and machines to read and write. It's often used for transmitting data between a server and a web application, or between different parts of a program.
- JSON is a way to structure and represent data. It uses a simple and intuitive format that is easy to understand. JSON data consists of key-value pairs, where each key is a string, and the value can be a string, number, boolean, object, array, or even null.
- JSON is easy for humans to read and write because it uses a format that resembles a simplified version of JavaScript object literals
- JSON is also easy for machines to parse and generate. This makes it an ideal choice for data exchange between different programming languages and platforms
- JSON is commonly used in web development for sending and receiving data between web servers and web browsers. It's also used in data storage, configuration files, and as a way to represent structured information in various applications.
- Keys and strings must be enclosed in double quotes.
- Values can be strings, numbers, booleans, null, objects, arrays, or nested combinations of these.
- Objects are enclosed in curly braces
{}
and consist of key-value pairs.
- Arrays are enclosed in square brackets
[]
and can contain multiple values.
{
"name":"Fatima",
"age":24,
"is_locked":false,
"hobbies":[
"reading",
"gaming"
]
}
Positive Note : You are doing a great work keep it up
Previous:/public/api-beginners/MVC View Next:/public/api-beginners/http