I'm calling PHP from a webpage and I want to pass the resulting JSON back to the webpage with this
$jsonString = json_encode($generationResponse);
print_r($jsonString);
echo $jsonString;
According to print_r($jsonString); the json string is '{"code":200,"msg":"success","data":{"taskId":"91a5c1544dba3ceb0c84f9b96300938c"}}' which is OK and valid JSON. But my webpage gives an error Error generating audio: SyntaxError: Unexpected token 'A', "Array ( "... is not valid JSON
Can anybody help me with this