Simplified:
[code]$data =($json = json_decode(file_get_contents(“php://input”))) ? $json : $_POST;[/code]
Your post helped me a lot as it did seem client I was testing for was coming in via _POST not json & led me to simplify the logic.
Simplified:
[code]$data =($json = json_decode(file_get_contents(“php://input”))) ? $json : $_POST;[/code]
Your post helped me a lot as it did seem client I was testing for was coming in via _POST not json & led me to simplify the logic.