From: Kamarulnizam Rahim Date: 2011-02-02T09:50:57+09:00 Subject: remove array bracket Hi when i run my script, the output is as followed: [{"name"=>"Efficiency (Energy)", "type"=>"Objective", "subtype"=>"NIZAMMMMzz", "components"=> [{"type"=>"ContentBox", "title"=>"Audit", "args"=>{:content=>"None\n"}}, {"type"=>"ChildListingComponent", "title"=>"Current Targets for the Efficiency (Energy) Objective:"}]}, {"children"=> [{"name"=>"Routinely monitor energy use", "type"=>"Target", "subtype"=>"ATEEN", "components"=> [{"type"=>"ContentBox", "title"=>"Summary", "args"=>{:content=>"None\n"}}, {"type"=>"ContentBox", "title"=>"Description", "args"=>{:content=>""}}, {"type"=>"TargetComponent", "title"=>"None", "args"=> {:start_date=>"#"5/1/2011", :state=>"Active"}}]}]}, ........... ........... :state=>"Active"}}]}]}] How do i tell ruby to remove the very first and the very last bracket '[...]' out from my output? Nizam -- Posted via http://www.ruby-forum.com/.