Convert array of (generic) records to JSON lazarus / 61-Beginners ---------------------------------------------------------------------- tudi_x · 2018-07-23 12:10 hi, please advise how could an array of records with unknown structure be converted (marshaled) to JSON. for example: type   TExRecord = record     property1: string;     property2: string;   end;   TArrayRecords = array of TExRecord;    i have seen https://www.freepascal.org/docs-html/fcl/fpjson/index.html but is there something more generic? for example something that could work unchanged if i add a third property to the record (like reflection maybe). type   TExRecord = record     property1: string;     property2: string;     property3: string;   end; thank you ---------------------------------------------------------------------- engkin · 2018-07-23 17:07 Did you see this? ---------------------------------------------------------------------- tudi_x · 2018-07-24 07:23 did not see it. RecordToJSON looks exactly what i was looking for. hope it is integrated the soonest in the standard library and an example added. thank you