Saturday, 23 September 2017

Data Types JSON And List Of Datatypes In JSON

Data Types JSON And List Of Datatypes In JSON

code , Datatype of JSON With Example, Datatype of JSON, code for JSON , List Of JSON Datatype.


Valid Data TypesIn JSON, values must be one of the following data types:

  • a string
  • a number
  • an object (JSON object)
  • an array
  • a boolean
  • null

JSON Strings

Example
{ "name":"John" }

JSON Numbers
Example{ "age":30 }

JSON Objects

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

JSON Arrays

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

JSON Booleans

Example
{ "sale":true }

JSON null

Example
{ "middlename":null }

Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search