TJSONIniFile.ReadBool¶
Reads a boolean value from the JSON ini file
Declaration¶
Source position: jsonini.pp line 60
public
function TJSONIniFile.ReadBool(const Section: string;
const Ident: string; Default: Boolean)
: Boolean; override;
Description¶
ReadBool reads a boolean value from the specified section and key. If the stored value is a JSON boolean, it is returned directly. For other value types, the method attempts to convert them to boolean. If the key is not found or conversion fails, the Default value is returned.