JSON Object Structure

A JSON object contains zero, one, or more key-value pairs, also called properties. The object is surrounded by curly braces {}. Every key-value pair is separated by a comma. The order of the key-value pair is irrelevant.

A key-value pair consists of a key and a value, separated by a colon (:). The key is a string, which identifies the key-value pair. The value can be any of the following data types:

string surrounded by quotation marks (" ")
number
float
array JSON array
object JSON object (can be nested)
boolean true or false
empty null

Examples

{ } //Empty JSON object

{
	 “StringProperty”: “StringValue”,
 	“NumberProperty”: 10,
 	“FloatProperty”: 20.13,
 	“BooleanProperty”: true,
 	“EmptyProperty”: null
}

{
	“NestedObjectProperty”: {
		“Name”: “Neste  Object”
	},
	“NestedArrayProperty”: [10,20,true,40]
}