A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3schools.com/js/js_json_datatypes.asp below:

Website Navigation


JSON Data Types

JSON Data Types Valid Data Types

In JSON, values must be one of the following data types:

JSON values cannot be one of the following data types:

JSON Strings

Strings in JSON must be written in double quotes.

JSON Numbers

Numbers in JSON must be an integer or a floating point.

JSON Objects

Values in JSON can be objects.

Example

{
"employee":{"name":"John", "age":30, "city":"New York"}
}

Objects as values in JSON must follow the JSON syntax.

JSON Arrays

Values in JSON can be arrays.

Example

{
"employees":["John", "Anna", "Peter"]
}

JSON Booleans

Values in JSON can be true/false.

JSON null

Values in JSON can be null.

Example

{"middlename":null}

Track your progress - it's free!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4