JsonToDelphi icon indicating copy to clipboard operation
JsonToDelphi copied to clipboard

Invalid Class Typecast

Open GNiessen opened this issue 2 years ago • 10 comments

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?

GNiessen avatar Aug 11 '23 19:08 GNiessen

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

marlonnardi avatar Jan 20 '24 13:01 marlonnardi

Same here with this json:

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

julioffigueiredo avatar Aug 02 '24 14:08 julioffigueiredo

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

gabercek avatar Aug 22 '24 12:08 gabercek