From: Nicole Villette Date: 2013-03-15T01:42:59+09:00 Subject: Re: Access values for JSON.parse response > If it's allowed to be 30 or 15 you might want some better logic, like: > > val.any?{|v| [15,30].include? v['value'] } > > and maybe > > val.each do |v| > assert( [15,30].include? v['value'], # ... oops..I'm getting you guys mixed up...Thanks Matthew... You guys have been really helpful. -- Posted via http://www.ruby-forum.com/.