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:
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 }
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