Vaibhav Deshmukh

Vaibhav Deshmukh

  • NA
  • 465
  • 73.8k

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

Jan 3 2017 1:26 AM
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 (1)