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

TJSONIniFile.ReadString

Reads a string value from the JSON ini file

Declaration

Source position: jsonini.pp line 57

public function TJSONIniFile.ReadString(

  const Section: string;

  const Ident: string;

  const Default: string

):string; override;

Arguments

Section

  

The section name to read from

Ident

  

The key name to read

Default

  

Default value to return if key not found

Function result

The string value or default if key not found

Description

ReadString reads a string value from the specified section and key. If the key is not found, the Default value is returned. For structured JSON values (objects or arrays), the JSON representation is returned as a string. For other values, the string representation is returned.

See also

WriteString

  

Writes a string value to the JSON ini file

TCustomIniFile.ReadString

  

Read a string valued key.


Documentation generated on: Jan 27 2026