I am using an api to get data for my application. I parse the JSON data using GSON so I have something looing like this:
List
obj
double
movie
...
obj
double
movie
...
...
The double value is used for weighting the order of the movies. However, I am not intrested in that, and would instead look a plain list of movies, like this:
List
movie
...
movie
...
...
The only solution I can think of is first parsing it to a list of obj and then using a loop to copy the movie objects to a new list, but I was hoping you could teach me a better method. What are your suggestions?