Possible Duplicate:
How to retrieve JSON via ASP.Net context.Request
Im trying to parse an Json object but i dont understand where in the context.Request object i can find the actual data (in string format i guess).
This is how i pass the Json data to the server
$(function () {
// Do your stuff here
alert("wööööö");
urlToHandler = 'JSonTestHandler.ashx';
jsonData = '{ "FavoriteFood":"Pasta with butter and cheese", "FavoriteSport": "Submission Wrestling", "FavoriteGame": "Starcraft 2", "FavoriteMusic": "Hip Hop" }';
$.ajax({
url: urlToHandler,
data: jsonData,
dataType: 'json',
type: 'POST',
contentType: 'application/json',
success: function (data) {
setAutocompleteData(data.responseDateTime);
},
error: function (data, status, jqXHR) {
alert('There was an error.');
}
}); // end $.ajax
});