É possível definir um comprimento ilimitado para maxJsonLength no web.config?
Olá, colegas! Encontrei um problema ao transferir um objeto JSON grande de um controller ASP.NET MVC para o cliente. Tenho um método de ação que retorna dados via JsonResult:
```csharp
public JsonResult GetLargeData()
{
var data = GetHugeListOfObjects(); // contém cerca de 50000 registros
return Json(data, JsonRequestBehavior.AllowGet);
}
```
No cliente (jQuery), recebo um erro: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."
Sei que é possível aumentar o maxJsonLength no web.config:
```xml
```
Mas isso parece um workaround. É possível remover a limitação definindo maxJsonLength como int.MaxValue ou infinito? Ou ex