I have the following hash from a json decode:
{"person"=>{"user"=>[{"username"=>"foo", "status"=>"Y", "roles"=>["accounting", "sales"]}]}}
I basically want to change the roles value to be in a comma delimited sentence like doing value.to_sentence. How do I achieve this?
["accounting", "sales"]into"accounting, sales"?