In my Inno setup project, I need to parse a JSON. I Try to create a dll and parse JSON with the dll function but it gives me an access violation error after two days I could not find the reason for this access violation so I decide to parse JSON inside the Inno Setup. I want to parse this JSON and Use the JsonParser library also here is two similar Questions but I couldn't get it.
How to parse a JSON string in Inno Setup?
{
"Header":"Install FileType",
"Files":
[
{
"Filename":"SQL Server",
"FileType": 1,
"CheckExists":true,
},
{
"Filename":"Dot Net 3.5",
"FileType": 2,
"CheckExists":false,
}
]
}
I need this function
type
TJFile = record
FileName : string;
FileType : Integer;
CheckExists: Boolean;
GetFile(JSON: string; Index :Integer; var File: TJFile );
how can parse Json to get File with its index. Thank you for help and guid me.