I just started with GWT so may be missing something - but why not just use
the default GWT serialization by having the object implement IsSerializable.
I've never done this, just remember reading about it. The source code from
this tutorial looks helpful http://developerlife.com/tutorials/?p=131

On Wed, Aug 25, 2010 at 10:33 AM, Harald Pehl <[email protected]>wrote:

> The JSON serialization is only in the trunk and not yet available as
> downloadable version. As soon as I finished the documentation for it,
> there will be a new version in the downloads. In the meantime feel
> free to checkout the sources and build by yourself. You can take a
> look at the following unit tests to get a feeling of how the
> serialization works:
>
>
> http://code.google.com/p/piriti/source/browse/trunk/core/src/test/java/name/pehl/piriti/client/gwttest/animal/JsonAnimalTest.java
>
> http://code.google.com/p/piriti/source/browse/trunk/core/src/test/java/name/pehl/piriti/client/gwttest/book/JsonBookTest.java
>
> http://code.google.com/p/piriti/source/browse/trunk/core/src/test/java/name/pehl/piriti/client/gwttest/simple/JsonAmoebaWriterTest.java
>
> - Harald
>
> On 25 Aug., 15:00, Ciarán <[email protected]> wrote:
> > I have looked into pirtiy before and messed around with code, but it
> > only seems to be go one way. JSON string to objects  and not the other
> > way around which is what I need. I have looked at ton's of librarys
> >
> > On Aug 18, 1:24 pm, Peter Simun <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > pirity is the answer :)http://code.google.com/p/piriti/
> >
> > > You can serialize your object into XML/JSON and save the serialized
> > > object on the server.
> >
> > > Peter
> >
> > > On 17. Aug, 16:48 h., Ciarán <[email protected]> wrote:
> >
> > > > Thanks for the reply.
> >
> > > > I am quite familiar with XML parsers, I used them in the past. Though
> > > > in this situation its not suitable as inherited class most always
> work
> > > > without having to define the added properties in the parsing. I need
> > > > to serialize objects into some kind of file, save it and restore it
> at
> > > > a later date.
> >
> > > > Thanks again
> >
> > > > On Aug 17, 2:21 pm, aditya sanas <[email protected]> wrote:
> >
> > > > > Hi
> >
> > > > > The basic requirement for you is to deal with XML file
> >
> > > > > So we have jxl.jar which provides APIs to interact with tags and
> elements in
> > > > > xml so
> >
> > > > > using these API's that are generally known as XML parsers that is
> SAX or DOC
> > > > > parsers.
> >
> > > > > so use by using these parsers you will be able to deal with XML
> files.
> >
> > > > > It wont be that difficult for you once you learn how to use these
> parsers.
> >
> > > > > You will need external jar file jxl.jar
> >
> > > > > --
> > > > > Aditya
> >
> > > > > On Tue, Aug 17, 2010 at 6:00 PM, Ciarán <
> [email protected]> wrote:
> > > > > > Hi, I am currently working on a GWT app that requires me  to
> > > > > > serializes an object client side into maybe XML/JSON or anything
> > > > > > really. Then save that serialized object as a xml/json/.ser file.
> Then
> > > > > > at a later date read that file and reconstruct my object from it.
> >
> > > > > > I have been searching for days for an answer to this, used
> several
> > > > > > external library, read tutorials, GWT documentation and I still
> not
> > > > > > closer to a solution. Am I totally missing something here? It was
> very
> > > > > > easy to do this in plan Java, but GWT I just can seem to get it
> > > > > > working.
> >
> > > > > > Thanks
> >
> > > > > > --
> > > > > > 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs
> [email protected]>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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