According to the jQuery docs, the data option (in $.ajax) is supposed to accept a string or an object (which it then converts to a query string). It appears as though its not converting my object:
My Javascript is: var json = { "Request" : { "action" : "doSomething", "params" : {"id":"123"} } }; $.ajax({ type: "POST", url: WEB_DOMAIN + "/api.php", data: json }); In api.php contains: <?php var_dump($_REQUEST['Request']); ?> Which outputs: string(15) "[object Object]" Does anyone know what I'm doing wrong?