I have a string that when I var_dump returns the following
string(20) \"{\\\"key1\\\":\\\"key1_value\",\\\"key2\\\":\\\"key2_value\\\"}\"
How c
What you have as data looks like valid JSON. You probably can use json_decode with the second parameter to true (to get an associative array) like this:
$array = json_decode($string, true);