{ "name":"John", "age":30, "car":null }
JSON Object are surrounded by curly braces {}.
JSON Object are written in key/value pairs.
Keys must be strings, and values must be a valid JSON data type (string, number, object, array, boolean or null).
Keys and values are separated by a colon.
Each key/value pair is separated by a comma.
Accessing JSON Object Values You can access the object values by using dot (.) notation:
myObj = { "name":"John", "age":30, "car":null };
x = myObj.name;
Example:
myObj = {
"name":"John",
"age":30,
"cars": {
"car1":"Ford",
"car2":"BMW",
"car3":"Fiat"
}
}
- based on information obtained 2017-07-11-