Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

label name

PHP

JSON Data Types

Valid Data TypesJAVASCRIPT

In JSON, values must be one of the following data types:
  • a string
  • a number
  • an object (JSON object)
  • an array
  • a boolean
  • null
JSON values cannot be one of the following data types:
  • a function
  • a date
  • undefined

JSON StringsJAVASCRIPT

Strings in JSON must be written in double quotes.

Example

{ "name":"John" }

JSON NumbersJAVASCRIPT

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

Example

{ "age":30 }

JSON ObjectsJAVASCRIPT

Values in JSON can be objects.

Example

{
"employee":{ "name":"John", "age":30, "city":"New York" }
}
Objects as values in JSON must follow the same rules as JSON objects.


JSON ArraysJAVASCRIPT

Values in JSON can be arrays.

Example

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

JSON BooleansJAVASCRIPT

Values in JSON can be true/false.

Example

{ "sale":true }

JSON nullJAVASCRIPT

Values in JSON can be null.

Example

{ "middlename":null }