Read JSON content 4
- Use PHP to get JSON file on the server and dump it to JavaScript
- Using traditional JavaScript to read JSON
{
"Instructor":
{
"@HireDate": "2011-08-01",
"FirstName": "Jack",
"LastName": "Zheng",
"Title": "Assistant Professor",
"Course":
[
{
"Title": "IT6713",
"Enrollment": 18
},
{
"Title": "IT6753",
"Enrollment": 22
}
]
}
}The JSON file can be viewed here: instructor3.json
Reading results