[Lazarus] Convert record to JSON?

AlexeyT aaa5500 at ya.ru
Fri Jul 20 19:09:25 CEST 2018

> The config data are stored in a record and consists of a mix of data
> types like strings and numbers as well as booleans.
> Is there a simple way to encode the record as a JSON message

Yes, it is. You can write to json values by path: /dir1/dir2/dir3/key,

so for your record, make string paths for your values: /myrec/keybool ; 
/myrec/keyint ; ...


More information about the Lazarus mailing list