Derek Williams
Derek Williams

Reputation: 550

Android and JSON Youtube Playlist

Ok, I am parsing a playlist from YouTube using a GDATA link. I have decided to use JSON rather than parse XML. Can someone point me towards an intuitive tutorial for this.

Note: I have already been through the YouTube API page and I cannot get what I need from it, so save yourself the trouble :)

Also note: this playlist needs to be shown in a listview. I can do this part easily, but if you could just point me to the JSON part I would appreciate it.

Upvotes: 1

Views: 1103

Answers (1)

Bobbake4
Bobbake4

Reputation: 24857

Java has really good libraries for parsing json. You can use JSONObject(String json) constructor to create a json object for parsing from your response you got from YouTube. From there you can easily extract what you are looking for with methods such as optString.

Upvotes: 2

Related Questions