How i can convert string into hash?
now i use:
eval "{'1627207:28320'=>'text'}"
=> {'1627207:28320'=>'text'}
but "eval" is not good for my case - string passed from params, and such case it is not secure
Edited:
passed string can also be:
"{'1627207'=>'text', '11:167:28320'=>'text 1 / text 2 / unicode=>привет!'}"
Then need result hash:
{'1627207:28320'=>'text',
'11:167:28320'=>'text 1 / text 2 / unicode=>привет!'}