Delphi-JsonToDelphiClass
Delphi-JsonToDelphiClass copied to clipboard
Object can't be converted from Json array
This is demo generated TRootClass:
TRootClass = class
private
FItems: TArray<TItemClass>;
public
property Items: TArray<TItemClass> read FItems write FItems;
destructor Destroy; override;
function ToJsonString: string;
class function FromJsonString(AJsonString: string): TRootClass;
end;
When calling TRootClass.FromJsonString, it will throw exception.
Have a look at my frok
https://github.com/JensBorrisholt/Delphi-JsonToDelphiClass
I have continued the development. And I'm sure it can handle your JSON