JSON (JavaScript Object Notation)

Stands for 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. It is primarily used to transmit data between a server and a web application as an alternative to XML.
An example of inner content a JSON file as an object:
{
"country": "USA",
"citiesInCountry": 10000,
"formed": 1776,
"active": true,
"cities": [
{
"name": "Los-Angeles",
"founded": 1781,
"streets": ["6th street", "7th street", ""]
},
{
"name": "Washington",
"founded": 1790,
"streets": ["6th street", "7th street", ""]
},
]
}
An example of inner content a JSON file as an array:
[
{
"name": "Los-Angeles",
"founded": 1781,
"streets": ["6th street", "7th street", ""]
},
{
"name": "Washington",
"founded": 1790,
"streets": ["6th street", "7th street", ""]
}
]
How to get data after loading in variable
country["cities"][1]["streets"][1];
Some notes, while writing and validating your own json file:
  1. Use only double quotes
  2. Do not left a comma after last element in an array

heart
0
3 connected dots
0

Used in

In this article, I will describe in detail how I solved the problem of server response delays to client requests. I will describe the operation of the ERR_HTTP2_PING_FAILED error and what steps I took to identify the problem.
In this article, you will find an example of how to implement your own Quill tooltip. And you will get how this even works. As an example, a tooltip will be created for links.