How can I send data in JSON format to an AJAX POST request.
My data consists of a JAVA person object with many attributes like name,dob,address,phone etc,
a list of Suppliers(supplier name, number) to this person, another list of helpers (helper name, number).
How do I combine all the data into a JSON object and send it in jQuery.post(url, data) ?
How can I send data in JSON format to an AJAX POST request. My
Share
You can build a complex JSON object and submit that to the server.
More info here: JSON Examples