From: Ryan Davis Date: 2012-04-02T08:07:29+09:00 Subject: Re: array of hashes On Apr 1, 2012, at 15:58 , artificialman Vamshi wrote: > Hi > Newbie how to display the following output? > > [{ "id" => "1", "value"=>"usa", "label"=>"country"}, > { "id" => "2""value"=>"india", "label"=>"country"}, > { "id" => "1""value"=>"chicago", "label"=>"city"}, > { "id" => "2", "value"=>"delhi", "label"=>"city"}] > > output > > id |city | country > -------------------- > 1 |chicago| usa > 2 | delhi | india We're here to help, but please do your own homework.