Is there a way to configure what JSON serializer is used when returning JSON via the JsonResult in the controller:
public ActionResult SomeJsonFunction()
{
var x = SomeModelCode.SomeModelFunction();
return Json(x);
}
It looks like the default is the JavaScriptSerializer. I would love to be able to use the DataContractJsonSerializer, but cannot find any documentation on how to do this.