JQuery Parsing JSON array
tengo unJSON
Salida como la siguiente:
["City1","City2","City3"]
Quiero obtener cada uno de los nombres de las ciudades, ¿cómo puedo hacer esto?
$.getJSON("url_with_json_here",function(json){
});
EDITAR:
$.getJSON('url_here', function(data){
$.each(data, function (index, value) {
$('#results').append('<p>'+value+'</p>');
console.log(value);
});
});
Lo anterior no parece estar funcionando, no se emiten valores.