From: James Gray Date: 2009-01-20T22:53:42+09:00 Subject: Re: Desktop <-> Web On Jan 20, 2009, at 4:37 AM, Brian Candler wrote: > P.S. I'm not sure what is the "right" way to serialize Ruby objects in > JSON. I think it's probably better to think of JSON as simple primitives. Thus JSON's "object" would map to Ruby's Hash. From there, I just create an output method that translates my objects to primitives and an input method that restores them. Most libraries do seem to try to dump everything though, so maybe this is just flawed thinking on my part. James Edward Gray II