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 “[ ]”.