How do I access an Array that is returned in a HashMap?

The server returns a HashMap with the following values

{responseCode=OK,people=[Array of People]}

I cast the response to a HashMap which then lets me access the objects by key,
although the Array simple returns Object, and I cant access the Data.

ie I call

HashMap response = (HashMap)client.execute("myMethod",param);

String responseCode =  (String)response.get("responseCode");
System.out.println(responseCode); (Prints "OK");

Object[] people = (Object[]) response.get("people");
System.out.println(people); (Prints java.lang.Object);

Anyone can help me?

Reply via email to