The guzzle http client is returning this to the front end as a string
string(77513) "{"jobs":[{"Address":"Master Services" , etc...
When I use this code.
$response = (string)$request->getBody(true);
return $response;
and on the client JSON.parse(data)
then throws an exception.
I have tried dozens of permutations of json_encode and json_decode, but I can't seem to figure out what I'm doing wrong. Can anyone help?