I have a script on one server which is posting a json array to another server which is not decoding it. I printed the POST and see that it’s receiving it correctly but then it’s not able to decode it. This is what I tested with, it prints the sent json array but isn’t decoding it.
print_r($_POST);
$inputArray = json_decode($_POST['inputarray'], TRUE);
echo "<pre>";
print_r($inputArray);
Got it working by stripping slashes. On my local server it was working but not the remote server which was strange. Found out this works.