First, im a beginner in GSON so please bear with me.
I tried to read a JSON from this url :
https://gdata.youtube.com/feeds/api/videos?author=radityad
Taking into account that the content JSON object looks like this:
"content": {
"1": "someLink",
"5": "someOtherLink",
...
}
The best way to parse that JSON object is as a Map (see Map documentation), so you just need to add an attribute to your Item class like this:
private Map content;
Basically a Map is an object containing pairs of key - value, in your case the keys are Integer and the values are String.
So then you can access your link looking for the key of the value you want to retrieve, in the case of the first link, it's just:
String someLink = content.get(new Integer(1));
Note that doing it this way you can have different numbers for the links. Now you have 1, 5 and 6. But you could have any integers and an arbitrary number of links...