what is the first part of a json file entry called code example
Example 1: javascript object notation
{
"first_name": "Taylor",
"last_name": "Hawkes",
"age": 31,
"address": {
"street": "954 Kazaam Lane",
"city": "Boulder",
"state": "CO",
"postalCode": "80303"
},
"emails": [
{
"type": "main",
"number": "[email protected]"
},
{
"type": "secondary",
"number": "[email protected]"
}
]
}
Example 2: json object
var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;