If I set the ajax format to x-www-form-urlencoded
I can easily access the sent data in the $_POST['whateverinput']
global, but if I use JSON it will introduce another problem of having to convert it back to a usable format to PHP with
$_POST = json_decode(file_get_contents('php://input'), true);
Why bother with JSON to transmit data from AJAX?