You are not logged in.
Pages: 1
Hello everyone. I want to serialize some records to a file. These records are inside object. When I writing code, as sample:
recapparat:=GetParamApparatUstr;
AddString('ParamApparat:');
AddRecordJSON(recapparat,TypeInfo(TApparatDataUstr));
Add(',');
....
I got:
{
ParamApparat:{
TrToka: [0,1,2,3,4,5,6,7],
TrTkOtb: [3],
TrNapr: [8,9,10,11,12,13,14],
Vhody: [16,16,16],
Rele: [16,16,16]
}
}
How I can get this(to indent all fields of records?):
{
ParamApparat:{
TrToka: [0,1,2,3,4,5,6,7],
TrTkOtb: [3],
TrNapr: [8,9,10,11,12,13,14],
Vhody: [16,16,16],
Rele: [16,16,16]
}
}
Thank you.
Last edited by Alek (2020-09-28 08:14:11)
Offline
Thank you. It works very well;
Last edited by Alek (2020-09-28 09:01:29)
Offline
Pages: 1