I need to send ArcGIS JavaScript Geometry Object JSON string to Asp.Net Handler. I am using JQuery Ajax request to post the Geometry Data. I am not able to pass JSON geometry like this JSON.stringify(geometry.toJson()). Here is my code.
var jsondata = JSON.stringify(geometry.toJson());
$('#ajax-button').click(function () {
$('#frmUpload').ajaxSubmit({
data: jsondata,
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function (r) {
$('#ajax-results').html(r);
$('input:file').MultiFile('reset'); < br >
}
});
});