I have a method when I debug it it return 300000 rows fine but after getting data in list i am return json object and when I am testing it on post man I am getting this error "error during serialization or deserialization using the json javascriptserializer,the length of the string exceeds the value set on the maxjsonlength property, I have done the web .config changes as well n
but still i am getting same error either it is mapping issue or length issue how to find

Vishal YelveRank #178 · 13.6K reputationPosted Sep 5, 2022, 1:32 AM EDT
Abhishek ChadhaRank #402 · 6.2K reputationPosted Sep 4, 2022, 7:00 AM EDT
public ActionResult/JsonResult getData()
{
var jsonResult = Json(superlargedata, JsonRequestBehavior.AllowGet);
jsonResult.MaxJsonLength = int.MaxValue;
return jsonResult;
}
Try to use this, no need to assign in web.config