I have below string. I need to convert this to an associative array. The string which I am getting, as a result, is coming from ajax and for this format of string I didn't find any solutions.
$string= '[{"name":"title","value":"%post_title%"},{"name":"author","value":"%author_name%"}]';
I need to convert the above string to an associative array so that I can use that array in foreach.