Notes
JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for transmitting data between a server and a web application, as well as storing data. It is easy for humans to read and write and easy for machines to parse and generate.
JSON is based on a subset of the JavaScript programming language, although it is language-independent and can be used with various programming languages. It provides a way to represent structured data as text using a combination of objects (key-value pairs), arrays, numbers, strings, booleans, and null values.
Here's an example of a simple JSON object:
{
"name": "John Doe",
"age": 30,
"city": "New York"
}
In this example, we have an object with three key-value pairs: "name" maps to the string value "John Doe," "age" maps to the number value 30, and "city" maps to the string value "New York."
JSON objects are enclosed in curly braces {}
and consist of key-value pairs. The keys must be strings and are followed by a colon :
, separating the key and value. The values can be strings, numbers, booleans, null, arrays (enclosed in square brackets []
), or nested objects.
Video
Video does not exists.