A server returns a string like this:
string(150) ""\"{ 'success': false,
'message': Email address already registered,
'error': { 'code': 100,
'message': 'Email address already registered!' }}\"""
Calling json_decode on the result doesn't change the string into array, it just remains a string.
How can I fix this string to be converted to a PHP array?