I am just trying to shift some comma separated numbers to the frontend:
[AcceptVerbs(HttpVerbs.Get)]
public JsonResult GetSquares()
{
var result = new JsonResult();
result.JsonRequestBehavior = JsonRequestBehavior.AllowGet;
IList<double> list = new List<double>();
...
result.Data = list;
return result;
}
This works fine as long as there are only a few numbers. Unfortunately, I have to shift lots of numbers occasionally and get a MaxJsonLength exception. I tried several suggestions to overcome this (add something to the web.config file etc.). Maybe I do not have to use JSON after all? However I still 'have to do something' with the numbers using javascript. I am using jquery's ajax stuff at the moment.
Any suggestions welcome ...