From: Brian Candler Date: 2009-01-20T23:10:32+09:00 Subject: Re: Desktop <-> Web James Gray wrote: > 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. For a POST it seems to make sense to think of JSON as a "params" hash, like a form post or an XML-wrapped hash. Following that logic, PUT ought to be the same, and hence GET. And the 'class' is implicit in the REST URL: /widgets/ or whatever. OK, I'm sold, for web use anyway. Maybe the documentation in the JSON library is a bit misleading then. -- Posted via http://www.ruby-forum.com/.