I'm trying to get a Json via POST and display it on the screen, Json is sent via an API that I do not have access to the script it sends, I'm trying to print everything I receive on the screen and then proceed, I know it is sent via POST and Content-Type: application / json; charset = UTF-8
<?php
header("Access-Control-Allow-Origin: *");
header('Cache-Control: no-cache, must-revalidate');
header("Content-Type: application/json; charset=UTF-8");
print_r($_POST);
?>
But always returns the error "Unexpected 'A".