Sign in Join
FPDoc Onlineexperiment

TJSONIniFile.ReadString function

Member of TJSONIniFilepublicIn unit JsonIni

Reads a string value from the JSON ini file

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.