I'm using Slim php framework with a database that contains complex HTML content, but when calling the get method it returns a bad json. Here's the return code
$response->withJson($resp, 201);
I also tried with json_encode but still not valid:
$response->withJson(json_encode($resp), 201);
I just noticed that the JSON returned is missing '}]' at the end, is it possible that the content is too long to be transferred as a string ?
Also when i call var_dump($resp)
it shows my content correctly