ajax to make a POST call sending some information (via POST like: page.aspx?var1value.). But I also want jQuery toAs soon as I use dataType: "json", which allows me to receive the JSON object I get an parseerror on the request! Hope you can help me out with that! Instead of trying to send JSON as is, you should only send a well-formed JSON string and let PHP to transform it into an object or an associative array jQuery post() Method. jQuery AJAX Methods. Example 1. Load data from the server using a HTTP POST request I am sending a ajax request with 2 post values, the first is action wich defines what actions my php script has to parse, the other is id wich is the id of theJS (Change the dataType from json to html or just dont set it jQuery will figure it out). . ajax( type: "POST", dataType: "html", url: "main.