I need to parse JSON Boolean value in Inno Setup. I've tried to modify the code from How to parse a JSON string in Inno Setup? to parse Booleans like this:
function FindJsonBoolean(
Output: TJsonParserOutput; Parent: TJsonObject; Key: TJsonString;
var Bool: TJsonBool): Boolean;
var
JsonValue: TJsonValue;
begin
Result :=
FindJsonValue(Output, Parent, Key, JsonValue) and
(JsonValue.Kind = JVKBoolean);
if Result then
begin
Bool := Output.Boolean[JsonValue.Index];
end;
end;
But it fails to compile with:
Unknown type 'TJsonBool'