[Lazarus] Convert record to JSON?
AlexeyT
aaa5500 at ya.ru
Fri Jul 20 20:56:40 CEST 2018
On 20.07.2018 20:33, Bo Berglund via Lazarus wrote:
> So I have two issues here:
> 1) It seems like there is no RecordToJSONString method only
> ObjectToJSONString.
No function; I was suggesting to make it (func) to your record type
(each rec type has its new function). So record type will convert to
{
"myrec": {
"int_var": 10,
"bool_var": False,
"str_var": "ddd"
}
}
--
Regards,
Alexey
More information about the Lazarus
mailing list