Unit 'JsonIni' Package
[Overview][Classes][Index] [#fcl]

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;

Arguments

Section

  

The section name to read from

Ident

  

The key name to read

Default

  

Default value to return if key not found or conversion failed

Function result

The boolean value or default if key not found or conversion failed

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.

See also

WriteBool

  

Writes a boolean value to the JSON ini file


Documentation generated on: Jan 27 2026