I want to check if jsonResults.Data (that contains list of objects) length is greater than jsonResults.MaxJsonLength (I set it to int.MaxValue) to avoid the following error: "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.".
so I think I need to convert the list to a string, in order to get the number of the characters.
Do you have any idea how?
(I can not use Json.Net because it requires NuGet client version '2.12' +, but my version of NuGet is '2.8.60610.756' and I do not want to update it.)
Thanks.