From: Phil Tayo Date: 2010-02-19T16:34:08+09:00 Subject: Re: Convert Sequel Dataset to JSON Object [{"country":"uk","task":"qwdwd","created_at":{"json_class":"Time","n":407000000,"s":1266543411},"id":3}] >> >> I'll have to look into this when I have more time. > > You probably want to add Time#to_json to do something, maybe > to_s.to_json or strftime(...).to_json. > > Jeremy Thanks but when I do this: Task.naked.all.to_s.to_json it converts the whole object to one big string. I'm not sure how to specify to to_s for only one field of my object i.e. "created_at". -- Posted via http://www.ruby-forum.com/.