From: Ferdous ara Date: 2012-12-09T22:21:51+09:00 Subject: Re: Searching a hash by value may be i need to design my logic in a different way let me explain basically in that hash table (out put of JSON) as key => value i got like this [ { "notes_expanded" : "check_maintanance_mode", "host_comments" : [], "host_icon_image_expanded" : "", "checks_enabled" : 1, "max_check_attempts" : 3, "host" : service2.home.lan, } { "notes_expanded" : "check_memory ", "host_comments" : [], "host_icon_image_expanded" : "", "checks_enabled" : 1, "max_check_attempts" : 3, "host" : service.home.lan, } { "notes_expanded" : "check_maintanance_mode", "host_comments" : [], "host_icon_image_expanded" : "", "checks_enabled" : 1, "max_check_attempts" : 3, "host" : service.home.lan, } ] So Basically i want to get all the host which notes_expanded = check_maintanance_mode so i should get only 2 Does it make sense ?? -- Posted via http://www.ruby-forum.com/.