I'm using jquery and I make a ajax call to a webservice that returns some json data. This works perfect in firefox but for some reason not in IE.
$.ajax({
type: "GET",
url: "http://domain.com/Service.svc/data",
dataType: "json",
success: function(data) {
//In firefox this shows the right value of test but in IE8 just "0", why?
alert(data.d.test);
}
});
I know that the content of the response (data) is:
{"d":{"__type":"MyContent:#","test":888.75,"test2":592.5}}
So the alert shows 888.75 in firefox but 0 in internet explorer. I can't see why this is happening?