$.getJSON("http://localhost:8080/geoserver/Tourism/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=Tourism:geot_alldata_utm1&maxFeatures=5000&outputFormat=application%2Fjson", function(result){
var i;
for(i = 0; i < 200; i++){
var img = (result["features"][i]["properties"]["image"]);
var temp =(result["features"][i]["properties"]["class"]);
type.push(temp);
images.push(img);
}
});
console.log(type[0]);
I have written above code to store specific value from JSON object into two global arrays that i have declared. But i am not able to access the variables by index added to the array.