I have a JSON
output like the following:
["City1","City2","City3"]
I want to get each of the city names, how can i do this?
$.getJSON("url_with_json_here",function(json){
});
EDIT:
$.getJSON('url_here', function(data){
$.each(data, function (index, value) {
$('#results').append('<p>'+value+'</p>');
console.log(value);
});
});
The above doesn't seem to be working, no values are outputted.