0 votes
in JSON by
Explain JSON syntax rules?

1 Answer

0 votes
by

There are several rules that describe the structure of the JSON. These are:

Data inside a JSON is arranged in key-value pair. The left side represents the key and the data on the right side represents value. Both key and value are separated by a colon “:”.

Each set of key-value pair is separated from the other pair by using a comma “,”.

Curly braces define the JSON objects. Left curly brace “{“ represents the start of the object and right curly brace “}” represents the end of an object.

Arrays are defined inside a JSON object by using square brackets “[ ]”.

Related questions

+1 vote
asked Nov 4, 2020 in JSON by rahuljain1
0 votes
0 votes
asked Jul 21, 2020 in JSON by SakshiSharma
...