I have json data represented like this
{key:\"value\"}
(no quotes arround key...)
I want to translate it to an associative array.>
As per the documentation (see Example #3 - 'common mistakes using json_decode'), keys must be enclosed in double quotes.
Where are you getting the JSON data?