Delphi-JsonToDelphiClass
Delphi-JsonToDelphiClass copied to clipboard
Generates Delphi Classes based on JSON string (Json To Delphi Class Generator / JSON Data Binding Tool)
ReservedWords should also contain the keywords 'property', 'unit' and 'interface', and might better be turned into a HashTable. https://github.com/PKGeorgiev/Delphi-JsonToDelphiClass/blob/master/Pkg.Json.Mapper.pas#L889
JsonToDelphi Online
The system has an error when trying to convert the json below. Even though he was a valid json, could you help me ? `{ "iTotalRecords":34, "iTotalDisplayRecords":34, "aaData":[ [ 1,...
Download https://www.betaavoindata.fi/data/fi/dataset/kasvinsuojeluaineet JSO and try to create classes..
Ao gerar minha classe, obtenho os erros: - [dcc32 Error] UPedido.pas(34): E2137 Method 'GetAsJson' not found in base class - [dcc32 Error] UPedido.pas(60): E2003 Undeclared identifier: 'RefreshArray' - Classe Gerada:...
This would be really handy but my Delphi XE3 wont build it.
@JensBorrisholt Can you test this JSON, does it generate an error in the data type of the ID field? [ { "id": "01010101", "descripcion": "No existe en el catálogo", "incluirIVATrasladado":...
Delphi, when converting objects to JSON, in the procedure "TJSONConverter.ConvertFieldNameToJson", it forcibly changes the first letter to lowercase, and there are Rest server implementations that are sensitive to the case...
This is demo generated TRootClass: ```pascal TRootClass = class private FItems: TArray; public property Items: TArray read FItems write FItems; destructor Destroy; override; function ToJsonString: string; class function FromJsonString(AJsonString: string):...