I'm currenly writing a basic API, this is just the simple GET and return of some records in a database, so they are all been pushed into an array and returned using json_encode.
But the problem I'm facing is the text; is there a limit? as when i remove the text part it displays each record in JSON
format but when i add the text field back in the whole return just gives white page, i have all errors turned on and there is nothing displayed on screen errors or in php error logs.
$review = array(
"ReviewID" => $reviewID,
"Reviewer" => $reviewer,
"Photo" => $reviewerPhoto,
"Stars" => $reviewStars,
"Title" => $reviewTitle,
"Review" => $reviewText,
"Date" => $reviewDate,
"Since" => $timeSince,
"From" => $reviewFrom
);
array_push($reviewArray, $review);
echo json_encode($apiReturn);
So the Array
field Review should be able to contain the text from the review, this is stored using (TEXT) in the database and some reviews do contain a-lot of characters.
Not sure if there was a limit to what you can display, any help or advice would be great.