I have the following array:
response = [{\"label\"=>\"cat\", \"name\"=>\"kitty\", \"id\"=>189955}, {\"label\" => \"dog\", \"name\"=>\"rex\", \"id\
Try:
response.select { |x| x["label"] == "cat" }
response.find {|x| x['label'] == 'cat' } #=> {"label"=>"cat", "name"=>"kitty", "id"=>189955}