The JSON file format uses two types of symbols to organize the data in its structure, they are:
[ ]
{ }
In them you can enter values of several types, see this example example:
{
"Nome": "Ana",
"Endereco": [
{"Rua": "Rua da boiada"},
{"Cidade": "Cruzeiro"}
],
"Telefones": ["31991188", "39999100"]
}
My doubts are linked to these symbols mentioned above.
Questions
I'd like to know what are the differences between brackets [ ]
and { }
braces and what would be the appropriate situations for each of them?