Reputation: 21
My orginal hash is like as hash = {"sku_id"=>[4], "brand_active"=>["true"], "salesman_active"=>["true"]}
How to remove the array within hash. that means to convert the hash like
{"sku_id"=>4, "brand_active"=>"true", "salesman_active"=>"true"}
Upvotes: 1
Views: 236