次のようなJSON
出力があります。
["City1","City2","City3"]
各都市名を取得したいのですが、どうすればよいですか?
$.getJSON("url_with_json_here",function(json){
});
編集:
$.getJSON('url_here', function(data){
$.each(data, function (index, value) {
$('#results').append('<p>'+value+'</p>');
console.log(value);
});
});
上記は機能していないようで、値は出力されません。