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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -