javascript - Jquery (JSON) and last.fm API? -


this question has answer here:

i'm new in using json jquery , ret documentation , still cant work. need pase data using json last.fm api , artist information (summary).

link api artist cher: http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=cher&api_key=2b35547bd5675d8ecb2b911ee9901f59&format=json

can experienced write me simple example how use jquery artist information last.fm ? thank in advance :)

you start like

$.ajax({   url: 'http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=cher&api_key=2b35547bd5675d8ecb2b911ee9901f59&format=json',   success: function(data) {     alert(data.artist.name);   } }) 

as can see data in json format, access properties using dot notation.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -