O'Reilly logo

JavaScript and JSON Essentials by Sai Srinivas Sriparasa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Datatypes in JSON

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.

Datatypes in JSON

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:

Datatypes in JSON

The datatype of the value that "id" references is a number.

Datatypes in JSON

Here, the datatype of the value ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required