English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

JSON Data Types

JSON supports the following data types:

  • String

  • Number

  • Boolean

  • Object (JSON object)

  • Array

  • null

JSON String Type

Strings in JSON must be enclosed in double quotes.

  {"name":"Seagull"}

JSON Number Type

Numbers in JSON must be integers or floating-point numbers.

  {"age":22 }

JSON Boolean Type

Values in JSON can be true or false.

  {"isAdult":true}

JSON Object Type

Values in JSON can be an object.

  {
  "user":{"name":"Seagull","age":22,"city":"New Delhi"
  }

JSON Array Type

Values in JSON can be an array.

  {
  "user":["Seagull","Cynthia","Tarush"]
  }

JSON null

Values in JSON can be null.

{"partnerName":null}