2

How can i serialize bulk data by using JSON JavaScriptSerializer in C#? I tried but got error which mentioned below

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

Anyone tell me how can i serialize bulk data plz???

2

3 Answers 3

2

Try this

 JavaScriptSerializer jsJson = new JavaScriptSerializer();
 jsJson.MaxJsonLength = 2147483644;
Sign up to request clarification or add additional context in comments.

1 Comment

I had tried this but it didn't solved my problem. I am facing problem while using DataContractJsonSerializer for bulk data.
1

you can use DataContractJsonSerializer

1 Comment

DataContractJsonSerializer don't allow more data like thousand row taken from SQL Server.
0

I believe this has been caused by one of your properties being simply too long in length. Can we see some code and background regarding the data involved?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.