< 1 min read
Valid Data Types # 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
In JSON, values must be one of the following data types:
JSON values cannot be one of the following data types:
Strings in JSON must be written in double quotes.
{ "name":"John" }
Numbers in JSON must be an integer or a floating point.
{ "age":30 }
Values in JSON can be objects.
{ "employee":{ "name":"John", "age":30, "city":"New York" } }
Objects as values in JSON must follow the same rules as JSON objects.
Values in JSON can be arrays.
{ "employees":[ "John", "Anna", "Peter" ] }
Values in JSON can be true/false.
{ "sale":true }
Values in JSON can be null.
{ "middlename":null }
Powered by BetterDocs
You must be logged in to post a comment.