marlonnardi / JsonToDelphi

generate delphi classes from json (Json To Delphi Class Generator / JSON Data Binding Tool FMX, VCL and uniGUI)
https://jsontodelphi.com
64 stars 25 forks source link

Invalid Class Typecast #11

Open GNiessen opened 1 year ago

GNiessen commented 1 year ago

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 ], [ 1691778980, 0.36, 0.45 ] ] } And though it validates as correct in the JSON validator, it is throwing an error in the JsonToDelphi web class tool. {Note: this is a simplified example} I am getting this from a 3rd-party site, so I can't change the format. Is there any way to define the classes to get this to load?

marlonnardi commented 8 months ago

@JensBorrisholt Can you validate this in the latest published version?

julioffigueiredo commented 1 month ago

Same here with this json:

{ "cod_comando":123, "status":"xxxxxx", "cod_empsis_web":[ 1, 2, 3 ] }

gabercek commented 1 month ago

There is a problem with simple array {"elements":["ex1", "ex2"]} or {"elements":[1,2]}