From: Mark Thomas Date: 2008-09-26T23:09:37+09:00 Subject: Re: json for extjs (without rails) On Sep 16, 2:44 am, Gurpal 2000 wrote: > > mydata = [  C.new(4, 2),  C.new(1, 3),  C.new(5, 6)  ] > > myhash = { 'data' => mydata }.to_json > > > a @http://codeforpeople.com/ > > The funny thing is i've been trying that and it keeps on crapping out: > > U:/ruby/lib/ruby/gems/1.8/gems/json_pure-1.1.3/lib/json/pure/generator.rb:3­00:in > `to_json': wrong number of arguments (2 for 0) (ArgumentError) This means that you are trying to supply two arguments to to_json, when in fact you aren't supposed to have any. My guess is that the example you're trying doesn't exactly match the above. -- Mark.