Mark Tabor

Mark Tabor

  • 548
  • 2k
  • 452.7k

How to increase the max length of json

Sep 4 2022 9:12 AM

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 

<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLenght="5000000"/>

but still i am getting same error either it is mapping issue or length issue how to find 


Answers (2)