You can serialize it into JSON. The Sudoku sample demonstrates doing that:
http://wave-samples-gallery.appspot.com/about_app?app_id=3

There are several related gadgets:
http://wave-samples-gallery.appspot.com/about_app?app_id=34038
http://wave-samples-gallery.appspot.com/about_app?app_id=64007

- pamela

On Wed, Dec 9, 2009 at 5:36 AM, Jiang, Guoqian, Ph.D.
<jiang.guoq...@mayo.edu> wrote:
> Hello,
>
> I am new to Google Wave API and would like to ask a question about Google
> Wave persistence layer,
>
> My  use case is that I want to reprensent a tree structure in a google wave
> gadget and a group will work collaboratively on curating the tree structure
> e.g. editing a node, adding a sub node or deleting a node.
>
> Assuming the tree structure is based on a json object, my question is
> whether there is a persistence layer API to store and restore a json object,
>
> From the tutorial, I can see a submitDelta() which is used to save a
> key-value pair representing an update. Is it possible that the value be a
> json object?
>
>>Updates the state object with delta, which is a map of key-value pairs
>> representing an update. For example, >wave.getState().submitDelta({'count':
>> 5}) sets the value of the count key to 5.
>
> By the way, do you know whether there is a wave gadget already developed for
> this use case?
>
> Thanks,
>
> -Guoqian
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to google-wave-...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-wave-api+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.


Reply via email to