2
Reply

How to set max length to JsonConvert.SerializeObject();

Vaibhav Deshmukh

Vaibhav Deshmukh

Dec 23 2016 7:49 AM
1.2k
I am trying to set Maxlength property to : JsonConvert.SerializeObject()
 I am using  Json.Net DLL.
 
string JSON = JsonConvert.SerializeObject(DataTable Obj);
 
but when I pass large amount of data filled in DataTable object the database table row cell contains 43679 characters. Not more than that.
 
I am not using JavaScriptSerializer and StringBuilder
Can you help me please.
 
 
 

Answers (2)