- var employee = {
- "firstName" : John
- , "lastName" : Doe
- , "employeeNumber" : 123
- , "title" : "Accountant"
- }
- var lastName = employee.lastName; //Access the last name
- var title = employee.title; //Access the title
- employee.employeeNumber = 456; //Change the employee number
- <employee>
- <firstName>John</firstName>
- <lastName>Doe</lastName>
- <employeeNumber>123</employeeNumber>
- <title>Accountant</title>
- </employee>