How can i parse this reponse? Please help..

On Sep 1, 4:58 pm, Wouter <[email protected]> wrote:
> Hey Mark,
>
> Thank you this worked great!
>
> Now I have another issue..
> I make another request:
>
> HashMap<String, Object> response =  (HashMap<String, Object>)
> client.call("film.retrieveDetails",sessionKey, 500);
>
> I only can save the response as an HashMap (androidxmlrpc client..)
>
> to get movie details and i get this response ==>
>
> {dates_video=[Ljava.lang.Object;@4373f820, plot=Een eeuwenoude ring,
> die jaren zoek is geweest, wordt gevonden en komt bij toeval terecht
> bij de kleine Hobbit Frodo. Als de tovenaar Gandalf erachter komt dat
> deze ring eigenlijk de Ene Ring is waar de slechte Sauron naar op zoek
> is, gaat Frodo samen met Gandalf, een Dwerg, een Elf, twee Mensen en
> drie andere Hobbits op een groots avontuur om deze te vernietigen.,
> imdb=0120737, directors_text=geregisseerd door Peter Jackson,
> directors=[Ljava.lang.Object;@43746c50, dates_cinema=
> [Ljava.lang.Object;@4379f870, thumbnail=http://www.moviemeter.nl/
> images/covers/thumbs/0/500.jpg, alternative_titles=
> [Ljava.lang.Object;@437aa250, actors_text=met Elijah Wood, Ian
> McKellen en Viggo Mortensen, url=http://www.moviemeter.nl/film/500/,
> genres=[Ljava.lang.Object;@4374f620, countries=
> [Ljava.lang.Object;@43752f68, duration=178, countries_text=Nieuw-
> Zeeland / Verenigde Staten, title=Lord of the Rings: The Fellowship of
> the Ring, The, votes_count=6530, genres_text=Avontuur / Fantasy,
> average=4.19, year=2001, actors=[Ljava.lang.Object;@4375b868,
> filmId=500, mini_series=0, durations=[Ljava.lang.Object;@4373f978}
>
> I can get the content like plot and directors_text like you said but
> for example dates_video has an Object. How can i get the content of
> this object and save all the data in seperate classes like this:
>
> public class FilmDetail {
>
>         public String url;
>     public String thumbnail;
>     public String title;
>     public Title[] alternative_titles;
>     public String year;
>     public String imdb;
>     public String plot;
>     public String duration;
>     public Duration[] durations;
>     public Actor[] actors;
>     public String actors_text;
>     public Director[] directors;
>     public String directors_text;
>     public Country[] countries;
>     public String countries_text;
>     public String[] genres;
>     public String genres_text;
>     public Date[] dates_cinema;
>     public Date[] dates_video;
>     public String average;
>     public String votes_count;
>     public int filmId;
>
> Thank you,
>
> Wouter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to