Now, let us take a look at a more complex example of JSON. We'll also go over all the datatypes that are supported by JSON. JSON supports six datatypes: strings, numbers, Booleans, arrays, objects, and null.
In the preceding example, we have five key-value pairs of different datatypes. Now let us take a close look at each of these key-value pairs:
In the preceding screenshot, the datatype of the value that
"isStudent" references is a Boolean.
The datatype of the value that
"scores" references here is an array.
Here the datatype of the value that
"courses" references is an object.
We know that JSON supports six datatypes; they are strings, numbers, Booleans, arrays, objects, and null. Yes, JSON supports null data, and real-time business implementations need accurate information. There might be cases where null was substituted with an empty string, but...