in reply to Convert stirng to array of hashes

Is that JSON? Is that YAML? Is that Perl code? There's insufficient information in your post to make the distinction. eval would be wrong for the first two.