I have a problem with the serialization of an object (a list of a class with approximately 5000 items).
I am using JSON.NET to generate the Json string but it is getting the following problem, in the middle of it is a text like this:
,{"State":0,"DataAlteracao":null,"Id":0,"IdDadosRastreamento":0,"CodigoPeriferico":"0","ValorPeriferico":"0"}
,{"State":0,"DataAlteracao":null,"Id":0,"IdDadosRastreamento":0,"CodigoPeriferico":"0","ValorPeriferico":"0"}
,{"State":0,"DataAl:..."0","ValorPeriferico":"1840"}
,{"State":0,"DataAlteracao":null,"Id":0,"IdDadosRastreamento":0,"CodigoPeriferico":"0","ValorPeriferico":"1380"}
,{"State":0,"DataAlteracao":null,"Id":0,"IdDadosRastreamento":0,"CodigoPeriferico":"0","ValorPeriferico":"62"}
Notice in bold that he cut off the tag name as well as put "..." and then proceeded to create the file normally.
Does anyone know what this problem can be and how can I resolve it? the code to perform the serialization is as follows:
string jsonReq = Newtonsoft.Json.JsonConvert.SerializeObject(request);
Where request is the list with 5000 positions.