views:

25

answers:

1

My code:

[HttpPost]
public JsonResult DoBlah()
{
    ..

    return Json(mySerializedObject);
}

In firebug, I can see the response content type is using application/json.

But for some reason, I get a popup with the json response.

What could the issue be here?

A: 

The issue is that your browser doesn't know how to handle application/json.

If you were using a one of the jQuery Ajax functions like $.getJSON() to retrieve the data you shouldn't experience this problem.

It's hard to say exactly because we don't know the method your using to request that data.

jessegavin