JsonToDelphi
JsonToDelphi copied to clipboard
generate delphi classes from json (Json To Delphi Class Generator / JSON Data Binding Tool FMX, VCL and uniGUI)
I have the results of a REST call coming back as: `{ "status": { "status_code": 0, "status_message": "SUCCESS" }, "obs":[ [ 1691778900, 0.52, 1.39 ], [ 1691778960, 0.16, 0.91 ],...
{ "streams": [ { "stream": { "label": "value" }, "values": [ [ "", "" ], [ "", "" ] ] } ] }
Hi, it seems that the for loop could be replace by aList.AddRange(aSource) as in TArrayMapper.List https://github.com/falcon-sistemas/JsonToDelphi/blob/e432a590f898bfddf9f0d080e4a74d2f6f5621e8/Pkg.Json.DTO.pas#LL212C5-L213C26 Regards
 na imagem dá para ver que está vindo capo a mais "AsJson"
From 3rd party API we get datetime in format "1899-12-30T00:00:00.10000Z" etc. When deparsing to object unit crash because for delphi is ISO8601 "1899-12-30T00:00:00.000Z"
Hi. Is the Pkg.Json.DTO and generated code considered to be thread safe? Br. Mikkel
This might be a newbie question, but using your class and [SuppressZero] as a property attribute I think. I am trying to work out where these are documented / what...
if i request AsJson from class, then i will get json response with TJsonOption. how to remove it? `{ "id": "6", "data": "Test" "options": [ "joDateIsUTC", "joDateFormatISO8601" ] }`