From: Steve Klabnik Date: 2010-09-01T00:29:16+09:00 Subject: Re: Can't convert string to integer I'd suggest running this code: json = JSON.parse(resp.body) puts "member id is: '#{json['member_id'}'" And seeing what that gives you. On Tue, Aug 31, 2010 at 11:08 AM, Dennis Monsewicz wrote: > I am a newbie to Ruby so I apologize for my ignorance. > > I am trying to parse a JSON object but I keep getting the error of Can't > convert string to integer. > > json = JSON.parse(resp.body) > json['member_id'].to_i > > I have NO idea why this won't work! Thanks in advance for the help! > -- > Posted via http://www.ruby-forum.com/. > >