WP REST API returns blank response if post is too long

I have the same issue with you, I did cuddle with the issue for a couple of days, I figure out, the problem is not of limitation of 7603, I was found out the problem is actualy with the json_encode.

So How to fix this?
i made a custom API, and convert my data to JSON using json_encode by using the option.

Solution
$json = json_encode($your_array, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE)

return $json

by using that solution, you no need to echo the data.

Leave a Comment