Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSON Data Types

//JSON Strings
{"name":"John"}

//JSON Numbers
{"age":30}

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

//JSON Arrays
{
"employees":["John", "Anna", "Peter"]
}

//JSON Booleans
{"sale":true}

//JSON null
{"middlename":null}
 
PREVIOUS NEXT
Tagged: #JSON #Data #Types
ADD COMMENT
Topic
Name
3+6 =