Forum: Object-Pascal / Delphi-Language
Delphi
by TiGü,
18. Sep 2019
It's unnessacry overhead and can't properly parsed in other dev environments.
Imagine if someone with Javascript, C++ or something else want to parse your JSON with ownObjects and listHelper.
You can workaround this with a simple data transfer object (DTO).
'{"items":}'
program Project1;
{$APPTYPE CONSOLE}
Forum: Object-Pascal / Delphi-Language
Delphi
by TiGü,
18. Sep 2019
Please be aware, in this way you serialize the internal structure of the TDepartmentList.
'{"ownsObjects":true,"listHelper":,"items":}'
Solution:
program Project1;
{$APPTYPE CONSOLE}
{$R *.res}
Forum: Object-Pascal / Delphi-Language
Delphi
by TiGü,
17. Sep 2019
Do you need a conversion from string to array of char?