Gson is a good solution for what you want to do.

I tought that you wanted to serialize your object in the Java sense,
i.e as byte[]. This is more efficient if you move from Java to Java.
For example, if your client is Android. There is then no need to go
through intermediate Json translations.

According to your requirements, I would make sure not to lose any
semantics by going via JSON.

regards
didier

On Dec 2, 11:48 am, Valter Henrique <[email protected]> wrote:
> Hi, i found my solution here :
>
> http://stackoverflow.com/questions/4318458/how-to-deserialize-a-list-...
>
> What you think about it ?
> Is a good choice ?
>
> Thanks by your answer.
>
> Best regards,
> Valter Henrique.
>
> On 1 dez, 18:25, Didier Durand <[email protected]> wrote:
>
> > Hi,
>
> > Can you detail how you (de) serialize ? A code snippet would
> > definitely help.
> > Do you use an ObjectOutputStream or something else ? Let us know so
> > that we can provide good help.
>
> > I personally use ObjectOutputStream to serialize and then
> > ObjectInputStream to deseriliaze and didn't encounter any problem
> > until now.
> > (I use this technique for example to be able to POST objects that
> > represent the input args of a Task in GAE and then the deserialization
> > happens when the Task is effectively run)
>
> > regards
> > didier
>
> > On Nov 30, 9:41 pm, Valter Henrique <[email protected]> wrote:
>
> > > Hi everyone,
> > > i can seralize a List<Vide> in my servlet on GAE.
>
> > > But i don't can deserialize it.
>
> > > Can someone help me, please?
>
> > > Best regards,
> > > Valter Henrique.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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/google-appengine-java?hl=en.

Reply via email to