airborne = [ ["CRK", 35.440634, 113.294862, 1, "RCE 1161", 170, 520, "CIH-WUH", 30, 51, 7807466],
["CR7", 31.099633, 108.485886, 2, "RCE 5029", 92, 525, "DAX-WUH", 30, 51, 7807471],
["CRK", 29.405961, 111.095604, 3, "RCE 1179", 62, 453, "DYG-WUH", 30, 51, 7807472],
["CRK", 30.750464, 114.148327, 4, "RCE 1211", 57, 715, "JHG-WUH", 30, 51, 7807482]
];
Instead of having a static JSON I'm now trying to populate the content of the JSON using this function:
When I call the URL manually, I do get a valid JSON according to JSONLint. It also looks exactly the same as the static JSON shown above. But I do get an error message saying that the JSON is undefined.
I also tried to call the above function like this:
But this didn't work either.
How do I write the Content back?