0

how to deserialize data getting error -

"Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property."

 var data = Newtonsoft.Json.JsonConvert.SerializeObject(db.RawDatas);
        return Json(data, JsonRequestBehavior.AllowGet);
  • 1
    Possible duplicate of [Can I set an unlimited length for maxJsonLength in web.config?](https://stackoverflow.com/questions/1151987/can-i-set-an-unlimited-length-for-maxjsonlength-in-web-config) – Eldar Nov 21 '19 at 12:00
  • 1
    Check Web config – bimal george Nov 21 '19 at 12:02

0 Answers0