pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anton dos santos <adsan...@free.fr>
Subject JSONSerializer and Collections
Date Mon, 07 Feb 2011 19:30:52 GMT
Hi

i am using QueryServlet and WebQuery to exchange data between the server and the Pivot client,
which 
works fine for simple beans.
But I don't know how to instanciate the JSONSerializer when I want to send a collection of
beans : 
let's say org.apache.pivot.collections.ArrayList<Person>.
When I do :  new JSONSerializer(ArrayList.class) , the client receives an ArrayList of HashMap;
but 
I'd like to get an ArrayList of Person.

How can this be done?

Regards
Anton


Mime
View raw message