Learn AJAX, jQuery and JSON from scratch at Udemy.com.The data type can be xml, text, html, json, script and many more. Example .success: success, dataType: dataType ) An AJAX request accepts five parameters jQuery.getJSON( url [, data] [, function(data, textStatus, jqXHR)] ). Load data from the server, that has been JSON encoded, using a HTTP GET request.This is a shorthand Ajax function, which is equivalent to using the jQuery.ajax() method as follows: .ajax( url: url, dataType: json, data: data .ajax( dataType: "json", url: url, data: data, success: success )With JQuerys html() method, we append the text to the div tag. Figure: Reading JSON from URL with JQuery. Today Im gonna give you some code examples on how you can post a form and JSON data using jQuery AJAX.Because of this .