Open HemulGM opened 4 years ago
Can you provide an example JSON with nested arrays?
Hi, Sure)
Result types: TVkKeyboardAction = class private FApp_id: Extended; FHash: string; FLabel: string; FPayload: string; FOwner_id: Extended; FType: string; //text, open_link, location, vkpay, open_app FLink: string; public property AppId: Extended read FApp_id write FApp_id; property Hash: string read FHash write FHash; property Link: string read FLink write FLink; property Payload: string read FPayload write FPayload; property&Label: string read FLabel write FLabel; property OwnerId: Extended read FOwner_id write FOwner_id; property&Type: string read FType write FType; function ToJsonString: string; class function FromJsonString(AJsonString: string): TVkKeyboardAction; end;
TVkKeyboardButton = class private FAction: TVkKeyboardAction; FColor: string; public property Action: TVkKeyboardAction read FAction write FAction; property Color: string read FColor write FColor; constructor Create; destructor Destroy; override; function ToJsonString: string; class function FromJsonString(AJsonString: string): TVkKeyboardButton; end;
TVkKeyboardButtons = TArray
TVkKeyboard = class
private
FButtons: TArray
@HemulGM thankyou for your example I'll fix it in my fork of the project
I use the generator on the site.
What is the reason for the lack of support for nested arrays? Personally, I solve it in the way below: