I have a data-type element for each option in select box. When I select an option I get the data-type as "[{:type=>"textbox", :label=>"Age"}]" (string of array of hashes). I want to convert this to array of hashes. I searched in google but couldn't get any. Can anyone help.
I tried replace as well,
str.replace('"[', '[').replace(']"' , ']'); but didnt get result. I want this in Javascript.