I'm trying to return a large set o json (about 2MB) but the web api returns the error:
"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property". I've tried configure the maxJsonLength property in the web.config but without success.
I've seen another answers in the stackoverflow but all related to a regular .NET MVC Controller and not an ApiController.
It's possible to bypass the internal JavaScriptSerializer maxJsonLenght or by doing some custom JsonSerializerType format?