i am trying to do ajax call by passing serialized json object and assigning it to data property of the ajax call. but some thing is not proper at assigning serialized object to data property control goes to jquery-2.0.3.min.js file
<script type="text/javascript">
function AddEmployee()
{
var Product = new Object();
Product.Name = "kRISH";
Product.Price = "23";
Product.Category = "AS";
$.ajax
({
url: 'http://localhost:62310/api/products',
type: 'POST',
data: JSON.stringify(Product),
contentType: "application/json;charset=utf-8",
success: function (data){ WriteResponse(data);},
error: function (x, y, z){ alert(x + '\n' + y + '\n' + z);}
});
}
</script>