Set data type (xml, json , script, text, html) and decode returned data .Nov 25, 2015 - Im trying to figure out how to use . ajax post method to send data to a node.js server . How can I send file and an array of json data to server using ajax? If I add property "multipart/form- data" to simple form, and not use ajax, how can I attach an array of objects to my form before submit? I was trying to get the AJAX generated JSON data from a website and send them to my own server, to analyze them and put them into a database. I. Of course, you might not always have control of the server-side thats producing data for your AJAX application. You might be using a third-party server for your data and its possible that server provides only XML output.How to Send JSON Data To The Server. This is a complete example showing how to send jQuery.Ajax() POST request containing data in JSON format to the server, and how to receive this JSON content, parse it and map it into Java objects in the server servlet side. Next, learn how to read and write information between the server and the client with AJAX methods in jQuery, and build a dynamic search application that updates search results as you type.Embed this video. Video: Sending JSON data to the page. | Recommendjquery - sending ajax call to server with json data. the data ie no, name, class, age as normal parameters. My Requirement is , I want to send the data in JSON format. I want to send an image the user selected from their machine along with form data all wrapped up in a JSON object and sent to server..post() doesnt have time to run? multipart/formdata is not sending file data with jQuery.ajax. Ajax Fundamental.