From: "ara.t.howard" Date: 2008-09-07T10:25:10+09:00 Subject: Re: json for extjs (without rails) On Sep 6, 2008, at 6:52 PM, Gurpal 2000 wrote: > Hi > > I trying to generate some simple json for extjs use *without rails*. > > Now say if i have a array of MyObject. Do i have to define my own > to_json? > > Is there a library that would say convert an array of objects to json > WITH the param names? > > class car > # registration > # make > # color > end > > so the json should say something like > > { registration: "blah", make: "sdsdd", color: "oikooi" } > > and if it's an array the json should look like something i can feed > into > an EXTJS grid. > > Thanks gem install json ri json a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama