M
Mage
Hello,
I have a string like: ' "gaz"=>"1", "viz"=>"1", "lift"=>"0",
"kamra"=>"1", "klima"=>"0" '
Is it possible to convert this easily to hash without calling eval or
writing regexp?
eval is easy and unsecure. Regexp is not very simple if you want handle
every special case (nested values etc).
Mage
I have a string like: ' "gaz"=>"1", "viz"=>"1", "lift"=>"0",
"kamra"=>"1", "klima"=>"0" '
Is it possible to convert this easily to hash without calling eval or
writing regexp?
eval is easy and unsecure. Regexp is not very simple if you want handle
every special case (nested values etc).
Mage