So I'm trying to make a POST request using the jquery $.ajax. My problem is the data being sent is JSON. So i'm not sure exactly how to send it. I am using fiddler to record the HTTP request and this is what I got. {"code":200,"user":"34522","questions":[{"35":"139"},{"55":"215"},{"28":"110"},{"88":"349"},{"127":"500"},{"148":"578"},{"125":"492"},{"218":"859"},{"258":"1019"},{"219":"862"}],"time":60}. Under the webform of fiddler there is nothing there.

Here is the code I came up with and the response back is Object {code: 500, error: "Invalid request"}
var request = $.ajax({
url: "http://website/api/post/",
type: "POST",
data: {
code : 200,
user : 34522,
questions : '[{"35":"139"},{"55":"215"},{"28":"110"},{"88":"349"},{"127":"500"},{"148":"578"},{"125":"492"},{"218":"859"},{"258":"1019"},{"219":"862"}]',
time : 60
},
dataType: "json"
});
request.done(function( msg ) {
console.log(msg);
});
request.fail(function( jqXHR, textStatus ) {
console.log( "Request failed: " + textStatus );
});