Problem solved, the json is indeed malformed. Thanks for the critique
and sorry to take your time...
C

On Jan 13, 10:06 am, cearl <[email protected]> wrote:
> Hi,
> Thanks. I've been able to verify that the problem was due to a parse
> error caused by data format I was hoping to use.
> I was attempting to store JSON strings directly in the map, e.g.:
>    {"x":551,"y":326,"width":20,...}
> I'm generating the JSON from toString() of existing JSON objects, so
> I'm assuming that the JSON text is valid.
> However, I note the error
>     org.codehaus.jackson.JsonParseException: Unexpected character
> ('x' (code 120)): was expecting comma to separate OBJECT entries
> when the string is received on the server.
>
> Just storing the JSON in the map directly seems to fix the problem.
> This probably means that my model of Document base map is
> shallow...the "json -> map" fix suffices I think...
> C
>
> On Jan 12, 9:58 pm, cearl <[email protected]> wrote:
>
>
>
> > Thanks
>
> > On Jan 12, 5:57 pm, Alex North <[email protected]> wrote:
>
> > > Logging deltas and trying to understand what's happening to the underlying
> > > data should definitely help you.
>
> > > I had a brief look at your patches. I don't really understand the second
> > > one. In the first one, I can see that the maps member never has anything 
> > > put
> > > in it. I suggest writing a suite of unit tests to ensure your code does 
> > > the
> > > right thing before trying to figure out why it's not working across 
> > > multiple
> > > clients. Tests will also help document what you're trying to achieve for
> > > other readers.
>
> > > On 6 January 2011 07:37, cearl <[email protected]> wrote:
>
> > > > Ok, the patches for the files involved were posted as issues 
> > > > 472001<http://codereview.waveprotocol.org/472001/show>
> > > >  - 474001 <http://codereview.waveprotocol.org/474001/show>. I apologize
> > > > for not realizing that they all should have been submitted as the same 
> > > > patch
> > > > set. I see that this group is now deprecated...
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups
> > > > "Wave Protocol" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<wave-protocol%2Bunsubscribe@goog
> > > >  legroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/wave-protocol?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" 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/wave-protocol?hl=en.

Reply via email to