On the server side, I use the JSON code from http://www.json.org/java/index.html
and serialize a String across the GWT RPC boundary. It's a bit
different from GWT's client JSON, but it's worked for me.

On Jun 16, 9:06 pm, Evan Ruff <[email protected]> wrote:
> Hey guys,
>
> Similar to my cache/manifest post, I'm trying to create the most lightweight
> JSON conversion algorithms I can. When I try to include a toJSON/fromJSON
> funciton in my beans, I'm getting nasty serialization errors. The problem
> lies in the com.google.gwt.json.client.* classes not being serializable. Is
> there any way I can get around the Serialization issue without having to
> remove the JSON imports in my class? I'd like to keep the code tidy by
> leaving the translation (to/from) methods in the beans, but not at the
> expense of RPC serialization.
>
> The overall goal is to be able to serialize my beans on the client so that I
> can push them into a LocalStorage key. Is there a better way to do JSON
> serilzation on the client in GWT? I'd also be interested in any other
> serilazation stratgies that are lightweight, fast and useful on the client.
>
> Has anyone else tackled this problem? Thanks!
>
> Evan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to