I have been using the JayRock framework with ASP.NET to return JSON being consume via javascript. Everything has worked fine until I changed the $.ajax call from a GET to a POST. Upon that change I now receive this error.
{"id":null,"error":{"name":"JSONRPCError","message":"Missing value.","errors":[{"name":"JsonException","message":"Missing value."}]}}
Here is my javascript:
var tmp = '{ "assID": 52 }';
var tmpObj = $.parseJSON(tmp);
$.ajax
({
type: "POST",
url: '/jsonC.ashx/tester',
dataType: 'json',
data: tmpObj,
async: true,
contentType: 'application/json',
success: function (result) {
console.log(JSON.stringify(result));
}
})
Anyone have any ideas? Thanks in advance.
Here is the definition of what should do: